aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ldp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-ldp.c')
-rw-r--r--epan/dissectors/packet-ldp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ldp.c b/epan/dissectors/packet-ldp.c
index e2fb81fbd5..6355b1da80 100644
--- a/epan/dissectors/packet-ldp.c
+++ b/epan/dissectors/packet-ldp.c
@@ -2885,7 +2885,7 @@ dissect_ldp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_)
/*
* XXX - return minimum of this and the length of the PDU?
*/
- return tvb_length(tvb);
+ return tvb_captured_length(tvb);
}
static void
@@ -3221,7 +3221,7 @@ dissect_ldp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data
*/
offset += plen + 4;
}
- return tvb_length(tvb);
+ return tvb_captured_length(tvb);
}
/* Register all the bits needed with the filtering engine */