diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-10-06 23:28:38 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-10-06 21:31:14 +0000 |
commit | a37ac98c5eb5c44794ca36418f93e7ed1c3e0af5 (patch) | |
tree | 880c5d989efe2f03df5128abb4f0eaade7604d05 | |
parent | 12c83d02cc34759ddf66070afb0ed0fae0a7b06e (diff) |
SCTP: fix dissection of DATA chunks
Regression introduced in gd52322e
Change-Id: I57baf53d81c7e95ea8ad15e4799033d341e4ee61
Reviewed-on: https://code.wireshark.org/review/10845
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r-- | epan/dissectors/packet-sctp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-sctp.c b/epan/dissectors/packet-sctp.c index 2cbdddb7ef..8f2a7f1601 100644 --- a/epan/dissectors/packet-sctp.c +++ b/epan/dissectors/packet-sctp.c @@ -3397,7 +3397,7 @@ dissect_data_chunk(tvbuff_t *chunk_tvb, header_length = DATA_CHUNK_HEADER_LENGTH; payload_offset = DATA_CHUNK_PAYLOAD_OFFSET; } - payload_tvb = tvb_new_subset(chunk_tvb, I_DATA_CHUNK_PAYLOAD_OFFSET, + payload_tvb = tvb_new_subset(chunk_tvb, payload_offset, MIN(chunk_length - header_length, tvb_captured_length_remaining(chunk_tvb, payload_offset)), MIN(chunk_length - header_length, tvb_reported_length_remaining(chunk_tvb, payload_offset))); |