forked from osmocom/wireshark
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>
This commit is contained in:
parent
ca1ac2cf69
commit
ca5fa539f5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue