From a3444529e5c1d4a3439e33cb449c70b399bf9205 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Sun, 2 Apr 2017 22:25:36 +0200 Subject: GTPv2: fix dissection of TWAN PLMN-ID Bug: 13552 Change-Id: I8c854eb30fd025a286f3823526c7f26acc8a758c Reviewed-on: https://code.wireshark.org/review/20873 Reviewed-by: Pascal Quantin Petri-Dish: Pascal Quantin Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/dissectors/packet-gtpv2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan') diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c index e4a88cb2d4..3414cfe5ce 100644 --- a/epan/dissectors/packet-gtpv2.c +++ b/epan/dissectors/packet-gtpv2.c @@ -5915,7 +5915,7 @@ dissect_gtpv2_twan_identifier(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree * in octets 's' to 's+3' shall be present */ if (flags & 0x04) { - proto_tree_add_item_ret_uint(tree, hf_gtpv2_twan_plmnid, tvb, offset, 3, ENC_BIG_ENDIAN, &civa_len); + proto_tree_add_item(tree, hf_gtpv2_twan_plmnid, tvb, offset, 3, ENC_NA); offset += 3; /* (q+1) to (q+r) Civic Address Information * ...it shall be encoded as defined in subclause 3.1 of IETF RFC 4776 [59] excluding the first 3 octets. -- cgit v1.2.3