From 65efca4ec1c22e38419b0f8da766291bce82585c Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Sun, 8 May 2016 22:39:20 +0200 Subject: 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 --- epan/dissectors/packet-lapsat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-lapsat.c') 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"); -- cgit v1.2.3