aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lapb.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-lapb.c')
-rw-r--r--epan/dissectors/packet-lapb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-lapb.c b/epan/dissectors/packet-lapb.c
index 1d677951f1..7d55d2da2d 100644
--- a/epan/dissectors/packet-lapb.c
+++ b/epan/dissectors/packet-lapb.c
@@ -147,7 +147,7 @@ dissect_lapb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* not end of frame ==> X.25 */
if (tvb_reported_length(tvb) > 2) {
- next_tvb = tvb_new_subset(tvb, 2, -1, -1);
+ next_tvb = tvb_new_subset_remaining(tvb, 2);
switch (pinfo->p2p_dir) {
case P2P_DIR_SENT: