From ca5fa539f5c8cf9e96ee2e1d8ddb19969bd52524 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 20 Aug 2014 15:51:40 -0700 Subject: [PATCH] Create an IE item for the "Apparent Address" IE. Also, don't initialize ie_item, in the hopes that cases where we don't set it will be caught at compile time rather than run time. Change-Id: I768251d19a7508ec876af44b987a4ecfd04258f7 Reviewed-on: https://code.wireshark.org/review/3759 Reviewed-by: Guy Harris --- epan/dissectors/packet-iax2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epan/dissectors/packet-iax2.c b/epan/dissectors/packet-iax2.c index 43050b7a0b..4135e4f27d 100644 --- a/epan/dissectors/packet-iax2.c +++ b/epan/dissectors/packet-iax2.c @@ -1321,7 +1321,7 @@ static guint32 dissect_ies(tvbuff_t *tvb, packet_info *pinfo, guint32 offset, /* the rest of this stuff only needs doing if we have an iax_tree */ if (iax_tree && ies_type < NUM_HF_IAX2_IES) { - proto_item *ti, *ie_item = NULL; + proto_item *ti, *ie_item; proto_tree *ies_tree; int ie_hf = hf_iax2_ies[ies_type]; @@ -1387,7 +1387,7 @@ static guint32 dissect_ies(tvbuff_t *tvb, packet_info *pinfo, guint32 offset, proto_tree *sockaddr_tree; sockaddr_tree = proto_tree_add_subtree(ies_tree, tvb, offset + 2, 16, - ett_iax2_ies_apparent_addr, NULL, "Apparent Address"); + ett_iax2_ies_apparent_addr, &ie_item, "Apparent Address"); /* The IAX2 I-D says that the "apparent address" structure "is the same as the linux struct sockaddr_in", without