forked from osmocom/wireshark
gsup: Don't print IEI + Length twice for unknown IEs
The handling for unknown IEs was flawed in that it printed the IEI and the IE Length lines twice: Once the general code before the switch statement, and then a second time inside the default case handling. Change-Id: Ic845bfb79e9ff881b39f709e3bff407e352c49fd Reviewed-on: https://code.wireshark.org/review/29005 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
297a6fe2f7
commit
b2d7da58a4
|
@ -403,9 +403,7 @@ dissect_gsup_tlvs(tvbuff_t *tvb, int base_offs, int length, packet_info *pinfo,
|
|||
case OSMO_GSUP_PDP_TYPE_IE:
|
||||
case OSMO_GSUP_PDP_QOS_IE:
|
||||
default:
|
||||
/* Unknown/unsupported IE: Print IEI, Length and Payload */
|
||||
proto_tree_add_item(att_tree, hf_gsup_iei, tvb, offset-2, 1, ENC_BIG_ENDIAN);
|
||||
proto_tree_add_uint(att_tree, hf_gsup_ie_len, tvb, offset-1, 1, len);
|
||||
/* Unknown/unsupported IE: Print raw payload in addition to IEI + Length printed above */
|
||||
proto_tree_add_item(att_tree, hf_gsup_ie_payload, tvb, offset, len, ENC_NA);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue