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