aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-iax2.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-08-20 15:51:40 -0700
committerGuy Harris <guy@alum.mit.edu>2014-08-20 22:52:10 +0000
commitca5fa539f5c8cf9e96ee2e1d8ddb19969bd52524 (patch)
tree679b60ce8feaa6bbb14ba2b185b58fb6b5ee9932 /epan/dissectors/packet-iax2.c
parentca1ac2cf69e796f8f532a7a84aae08bdb30461dc (diff)
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 <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-iax2.c')
-rw-r--r--epan/dissectors/packet-iax2.c4
1 files 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