aboutsummaryrefslogtreecommitdiffstats
path: root/packet-icmpv6.c
diff options
context:
space:
mode:
authorOlivier Abad <oabad@noos.fr>2001-03-28 21:24:15 +0000
committerOlivier Abad <oabad@noos.fr>2001-03-28 21:24:15 +0000
commitfe0e0fef2133a996706a1ef6ece3557b32048383 (patch)
treeb9a552d1e5913c7652fb9a1875b884320827ea5d /packet-icmpv6.c
parente8775b6c3401b322899ea39cc7fb7fecf8fdf834 (diff)
Replace proto_tree_add_item_hidden with proto_tree_add_boolean_hidden to
fix a crash found by Heikki Vatiainen when adding the hf_icmpv6_checksum_bad field. svn path=/trunk/; revision=3201
Diffstat (limited to 'packet-icmpv6.c')
-rw-r--r--packet-icmpv6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-icmpv6.c b/packet-icmpv6.c
index 61fc196776..7ca08cd9c7 100644
--- a/packet-icmpv6.c
+++ b/packet-icmpv6.c
@@ -1,7 +1,7 @@
/* packet-icmpv6.c
* Routines for ICMPv6 packet disassembly
*
- * $Id: packet-icmpv6.c,v 1.37 2001/02/28 19:33:49 guy Exp $
+ * $Id: packet-icmpv6.c,v 1.38 2001/03/28 21:24:15 oabad Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -988,7 +988,7 @@ dissect_icmpv6(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
cksum,
"Checksum: 0x%04x (correct)", cksum);
} else {
- proto_tree_add_item_hidden(icmp6_tree, hf_icmpv6_checksum_bad,
+ proto_tree_add_boolean_hidden(icmp6_tree, hf_icmpv6_checksum_bad,
NullTVB,
offset + offsetof(struct icmp6_hdr, icmp6_cksum), 2,
TRUE);