aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pppoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-pppoe.c')
-rw-r--r--epan/dissectors/packet-pppoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-pppoe.c b/epan/dissectors/packet-pppoe.c
index 05081dd9e5..46fc3c8cd3 100644
--- a/epan/dissectors/packet-pppoe.c
+++ b/epan/dissectors/packet-pppoe.c
@@ -1182,7 +1182,7 @@ static int dissect_pppoes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, v
length = reported_payload_length;
if ((guint)reported_length > reported_payload_length)
reported_length = reported_payload_length;
- next_tvb = tvb_new_subset(tvb,(6 + credit_offset),
+ next_tvb = tvb_new_subset_length_caplen(tvb,(6 + credit_offset),
(length - credit_offset),
(reported_length - credit_offset));
call_dissector(ppp_handle,next_tvb,pinfo,tree);