aboutsummaryrefslogtreecommitdiffstats
path: root/packet-igmp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-07-24 20:46:26 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2003-07-24 20:46:26 +0000
commit82bafff9ad1d10386c304a81b124e23167ed4f50 (patch)
treeba094673105a733a2713b628fa26e486778d8759 /packet-igmp.c
parentf74fb92783305d8b2e2d75ff51489b71406056e0 (diff)
From Markus Seehofer: check the correct byte (the second byte, not the
first byte) in a host membership query to distinguish between IGMPv1 and IGMPv2. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8081 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-igmp.c')
-rw-r--r--packet-igmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-igmp.c b/packet-igmp.c
index 19f384736a..71347b49e8 100644
--- a/packet-igmp.c
+++ b/packet-igmp.c
@@ -1,7 +1,7 @@
/* packet-igmp.c 2001 Ronnie Sahlberg <See AUTHORS for email>
* Routines for IGMP packet disassembly
*
- * $Id: packet-igmp.c,v 1.23 2003/07/23 19:38:52 jmayer Exp $
+ * $Id: packet-igmp.c,v 1.24 2003/07/24 20:46:26 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -41,7 +41,7 @@
0x07 20
0x08 20
0x11 8* 8* >=12
- 0x12 8* 8*
+ 0x12 8* 8*
0x13 x
0x16 8
0x17 8
@@ -809,7 +809,7 @@ dissect_igmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
offset = dissect_igmp_v3_query(tvb, pinfo, tree, type, offset);
} else {
/* v1 and v2 differs in second byte of header */
- if (tvb_get_guint8(tvb, offset)) {
+ if (tvb_get_guint8(tvb, offset+1)) {
offset = dissect_igmp_v2(tvb, pinfo, tree, type, offset);
} else {
offset = dissect_igmp_v1(tvb, pinfo, tree, type, offset);