diff options
author | David Perry <boolean263@protonmail.com> | 2022-09-20 07:02:06 -0400 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2022-09-29 11:17:36 +0000 |
commit | b2ace05edccd706d53f70789bf3b0c1cee3f012b (patch) | |
tree | 1724a8fbb0d230c33810bdae8528a17d1c94ffda /plugins | |
parent | 5dfbc40b4bfa5a2e20090087d58e886b39018c9e (diff) |
TRANSUM: claim 0 bytes of packet data
The TRANSUM post-dissector performs timing analysis, and does not
dissect any of the packet data; all its calls to `proto_tree_add_foo()`
claim 0 bytes. So this fix claims 0 bytes for the overall TRANSUM
protocol tree as well.
Fixes #18241
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/epan/transum/packet-transum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/epan/transum/packet-transum.c b/plugins/epan/transum/packet-transum.c index 336dcfbff9..1022423a11 100644 --- a/plugins/epan/transum/packet-transum.c +++ b/plugins/epan/transum/packet-transum.c @@ -831,7 +831,7 @@ static void write_rte(RRPD *in_rrpd, tvbuff_t *tvb, packet_info *pinfo, proto_tr if (in_rrpd->req_first_frame) { - pi = proto_tree_add_item(tree, proto_transum, tvb, 0, -1, ENC_NA); + pi = proto_tree_add_item(tree, proto_transum, tvb, 0, 0, ENC_NA); rte_tree = proto_item_add_subtree(pi, ett_transum); nstime_delta(&rte_reqspread, &(in_rrpd->req_last_rtime), &(in_rrpd->req_first_rtime)); |