diff options
Diffstat (limited to 'epan/dissectors/packet-ldp.c')
-rw-r--r-- | epan/dissectors/packet-ldp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ldp.c b/epan/dissectors/packet-ldp.c index 6355b1da80..46ac08a862 100644 --- a/epan/dissectors/packet-ldp.c +++ b/epan/dissectors/packet-ldp.c @@ -2867,7 +2867,7 @@ dissect_ldp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) * packets that happen to be going to or from the * LDP port but that aren't LDP packets. */ - if (tvb_length(tvb) < 2) { + if (tvb_captured_length(tvb) < 2) { /* * Not enough information to tell. */ @@ -3095,7 +3095,7 @@ dissect_ldp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data int length; tvbuff_t *volatile next_tvb; while (tvb_reported_length_remaining(tvb, offset) != 0) { - length_remaining = tvb_length_remaining(tvb, offset); + length_remaining = tvb_captured_length_remaining(tvb, offset); /* * Make sure the first PDU has a version number of 1; |