summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-banana.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-banana.c')
-rw-r--r--epan/dissectors/packet-banana.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-banana.c b/epan/dissectors/packet-banana.c
index 891b66a3..5a629c37 100644
--- a/epan/dissectors/packet-banana.c
+++ b/epan/dissectors/packet-banana.c
@@ -110,6 +110,7 @@ static const value_string pb_vals[] = {
/* Dissect the packets */
static int
+// NOLINTNEXTLINE(misc-no-recursion)
dissect_banana_element(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) {
proto_item *ti;
proto_tree *list_tree;
@@ -150,7 +151,9 @@ dissect_banana_element(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
list_tree = proto_item_add_subtree(ti, ett_list);
for (i = 0; i < val; i++) {
old_offset = offset;
+ increment_dissection_depth(pinfo);
offset += dissect_banana_element(tvb, pinfo, list_tree, offset);
+ decrement_dissection_depth(pinfo);
if (offset <= old_offset) {
return offset - start_offset;
}