summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-docsis-macmgmt.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-docsis-macmgmt.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-docsis-macmgmt.c')
-rw-r--r--epan/dissectors/packet-docsis-macmgmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-docsis-macmgmt.c b/epan/dissectors/packet-docsis-macmgmt.c
index e3bf924a..de21249a 100644
--- a/epan/dissectors/packet-docsis-macmgmt.c
+++ b/epan/dissectors/packet-docsis-macmgmt.c
@@ -3844,6 +3844,7 @@ dissect_attrs (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
tvbuff_t *attr_tvb;
total_len = tvb_reported_length_remaining (tvb, 0);
+ increment_dissection_depth(pinfo);
while (pos < total_len)
{
type = tvb_get_guint8 (tvb, pos);
@@ -3884,7 +3885,6 @@ dissect_attrs (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
ti = proto_tree_add_item (attr_tree, hf_docsis_bpkmattr_cm_id, tvb, pos, length, ENC_NA);
attr_subtree = proto_item_add_subtree(ti, ett_docsis_bpkmattr_cmid);
attr_tvb = tvb_new_subset_length (tvb, pos, length);
- // We recurse here, but we're limited by our packet length and the depth check in proto_tree_add_node.
dissect_attrs (attr_tvb, pinfo, attr_subtree);
break;
case BPKM_DISPLAY_STR:
@@ -4019,6 +4019,7 @@ dissect_attrs (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
pos += length; /* switch */
} /* while */
+ decrement_dissection_depth(pinfo);
}
static int