diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2016-05-08 22:39:20 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2016-05-08 20:48:10 +0000 |
commit | 65efca4ec1c22e38419b0f8da766291bce82585c (patch) | |
tree | a1b282d7645a4f06ec6c7b1290661c85a2af248e /epan/dissectors/packet-lapsat.c | |
parent | 2cb16b2efd29aa3446b52eba3bd54771ffff0ffe (diff) |
LAPSat: fix reported length for tvb subset
It seems like LAPSat can have have padding bytes as seen in the capture found
here: https://bugs.wireshark.org/bugzilla/attachment.cgi?id=9005
Change-Id: Ia2c7230c4c9fdae0bbe456585ab164f04eda0eb8
Reviewed-on: https://code.wireshark.org/review/15293
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-lapsat.c')
-rw-r--r-- | epan/dissectors/packet-lapsat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-lapsat.c b/epan/dissectors/packet-lapsat.c index f7087f1840..b69d45fd77 100644 --- a/epan/dissectors/packet-lapsat.c +++ b/epan/dissectors/packet-lapsat.c @@ -512,7 +512,7 @@ dissect_lapsat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* dissec payload = tvb_new_child_real_data(tvb, data, plen, plen); } else { /* Last nibble doesn't need merging */ - payload = tvb_new_subset(tvb, hlen, plen, -1); + payload = tvb_new_subset(tvb, hlen, plen, plen); } add_new_data_source(pinfo, payload, "LAPSat Payload"); |