aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-batadv.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-06-02 17:33:45 +0000
committerGuy Harris <guy@alum.mit.edu>2010-06-02 17:33:45 +0000
commit64682d90a941775dcf4e23ff321d1859e35c13ea (patch)
tree83b54fd1fa79e9fdbc9314eff534b9dd7974951a /epan/dissectors/packet-batadv.c
parent427eed652bad1fa433013b0032183ae366fc920d (diff)
Fix incorrect fetch of version field.
svn path=/trunk/; revision=33053
Diffstat (limited to 'epan/dissectors/packet-batadv.c')
-rw-r--r--epan/dissectors/packet-batadv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-batadv.c b/epan/dissectors/packet-batadv.c
index 2d250e13c5..22ca7d4fd4 100644
--- a/epan/dissectors/packet-batadv.c
+++ b/epan/dissectors/packet-batadv.c
@@ -776,7 +776,7 @@ static void dissect_batadv_bcast_v6(tvbuff_t *tvb, packet_info *pinfo, proto_tre
bcast_packeth = ep_alloc(sizeof(struct bcast_packet_v6));
- bcast_packeth->version = tvb_get_ntohs(tvb, 1);
+ bcast_packeth->version = tvb_get_guint8(tvb, 1);
orig_addr = tvb_get_ptr(tvb, 2, 6);
SET_ADDRESS(&bcast_packeth->orig, AT_ETHER, 6, orig_addr);
bcast_packeth->seqno = tvb_get_ntohs(tvb, 8);