summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-zbee-tlv.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 15:00:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-17 15:00:59 +0000
commit982fc7184d46621948e53b485c7504c9d11f3350 (patch)
treeca218a5ad0f5395fd3f39a22754b767c04265711 /epan/dissectors/packet-zbee-tlv.c
parentReleasing progress-linux version 4.2.4-1~progress7.99u1. (diff)
downloadwireshark-982fc7184d46621948e53b485c7504c9d11f3350.tar.xz
wireshark-982fc7184d46621948e53b485c7504c9d11f3350.zip
Merging upstream version 4.2.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-zbee-tlv.c')
-rw-r--r--epan/dissectors/packet-zbee-tlv.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-zbee-tlv.c b/epan/dissectors/packet-zbee-tlv.c
index 77abd2a..1ba6e49 100644
--- a/epan/dissectors/packet-zbee-tlv.c
+++ b/epan/dissectors/packet-zbee-tlv.c
@@ -2790,12 +2790,12 @@ dissect_zbee_tlvs(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint
guint8 length;
unsigned recursion_depth = p_get_proto_depth(pinfo, proto_zbee_tlv);
- if (++recursion_depth >= ZBEE_TLV_MAX_RECURSION_DEPTH) {
- proto_tree_add_expert(tree, pinfo, &ei_zbee_tlv_max_recursion_depth_reached, tvb, 0, 0);
- return tvb_reported_length_remaining(tvb, offset);
- }
+ if (++recursion_depth >= ZBEE_TLV_MAX_RECURSION_DEPTH) {
+ proto_tree_add_expert(tree, pinfo, &ei_zbee_tlv_max_recursion_depth_reached, tvb, 0, 0);
+ return offset;
+ }
- p_set_proto_depth(pinfo, proto_zbee_tlv, recursion_depth);
+ p_set_proto_depth(pinfo, proto_zbee_tlv, recursion_depth);
while (tvb_bytes_exist(tvb, offset, ZBEE_TLV_HEADER_LENGTH)) {
length = tvb_get_guint8(tvb, offset + 1) + 1;