diff options
author | Bill Meier <wmeier@newsguy.com> | 2009-07-12 13:41:36 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2009-07-12 13:41:36 +0000 |
commit | f3cd2bc5452fe296e1e34a2e2db3660be2511975 (patch) | |
tree | 3080671750db66b9770851b4006c1f4b9fbe9c5b /epan/dissectors/packet-tipc.c | |
parent | 27572c22f4c47b845c90700f46e27d239515531c (diff) |
Don't coerce a pointer to guint32 when pointing to a guint8.
Using that pointer will fetch the guint8 plus who knows what....
svn path=/trunk/; revision=29067
Diffstat (limited to 'epan/dissectors/packet-tipc.c')
-rw-r--r-- | epan/dissectors/packet-tipc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tipc.c b/epan/dissectors/packet-tipc.c index 9120e20b03..45df7c81c1 100644 --- a/epan/dissectors/packet-tipc.c +++ b/epan/dissectors/packet-tipc.c @@ -1579,7 +1579,7 @@ call_tipc_v2_data_subdissectors(tvbuff_t *data_tvb, packet_info *pinfo, guint32 /* The Name Type is not always explicitly set in a TIPC Data * Message. * - * On the tipc-discussion mailinglist, Allan Stephens described + * On the tipc-discussion mailing list, Allan Stephens described * where the Port Name is not set with the following words: * * <cite> @@ -2290,7 +2290,8 @@ dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (user < 4 && dissect_tipc_data) { /* DATA type user */ tvbuff_t *next_tvb; - guint32 *name_type_p = (guint32*)&msg_type; + guint32 msg_type32 = msg_type; + guint32 *name_type_p = &msg_type32; switch (msg_type) { case TIPC_CONNECTED_MSG: proto_tree_add_text(tipc_tree, tipc_tvb, offset, -1, "%u bytes Data", (msg_size - hdr_size*4)); |