aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pfcp.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.mathieson@keysight.com>2020-08-05 22:02:30 +0100
committerAnders Broman <a.broman58@gmail.com>2020-08-06 07:07:49 +0000
commit30413ed0b30a7092ea34f44964e9253a25b4d304 (patch)
treecbf6316375b734c3db9641b51ccd991a7be5bbe3 /epan/dissectors/packet-pfcp.c
parente189bd29965552547df46b300c49a3527d92d31f (diff)
PFCP: Add GUID field with correct API and length.
Also, take into account length of GUID before adding expert info for not-decoded data afterwards. Change-Id: I3e3ee2fc014bc7ace477015b21b2d6ca9127a6be Reviewed-on: https://code.wireshark.org/review/38062 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-pfcp.c')
-rw-r--r--epan/dissectors/packet-pfcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-pfcp.c b/epan/dissectors/packet-pfcp.c
index 0a8a16df8a..73bcde6a7a 100644
--- a/epan/dissectors/packet-pfcp.c
+++ b/epan/dissectors/packet-pfcp.c
@@ -7479,7 +7479,8 @@ dissect_pfcp_nf_instance_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
offset += 2;
/* Octet 5 to 20 NF Instance ID */
- proto_tree_add_item_ret_uint(tree, hf_pfcp_nf_instance_id, tvb, offset, 1, ENC_BIG_ENDIAN, &id_length);
+ proto_tree_add_item(tree, hf_pfcp_nf_instance_id, tvb, offset, id_length, ENC_NA);
+ offset += id_length;
if (offset < length) {
proto_tree_add_expert(tree, pinfo, &ei_pfcp_ie_data_not_decoded, tvb, offset, length);