diff options
author | Bruno Verstuyft <bruno.verstuyft@excentis.com> | 2019-08-06 11:16:00 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2019-08-06 12:31:35 +0000 |
commit | aa3598764e7bb192776916a063f3cd86e27440b4 (patch) | |
tree | c84a1c859bb21b6fb09624d20326fbd70e030cd0 /epan | |
parent | 8097f6a038dd4535b488a8bb59d0eb9231d4c902 (diff) |
DOCSIS: correct behaviour when working with truncated messages
Change-Id: If2c1bb73a69bdc552389cd213da8aef47f6dc658
Reviewed-on: https://code.wireshark.org/review/34198
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-docsis.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-docsis.c b/epan/dissectors/packet-docsis.c index d179207cc4..bb01b22585 100644 --- a/epan/dissectors/packet-docsis.c +++ b/epan/dissectors/packet-docsis.c @@ -630,7 +630,7 @@ dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* da } /* Captured Payload Length is based on the length of the header */ - payload_length = tvb_captured_length_remaining (tvb, hdrlen); + payload_length = tvb_reported_length_remaining (tvb, hdrlen); /* If this is a Request Frame, then pdulen is 0 and framelen is 6 */ if ((fctype == FCTYPE_MACSPC) && (fcparm == FCPARM_RQST_FRM || fcparm == FCPARM_QUEUE_DEPTH_REQ_FRM)) |