diff options
Diffstat (limited to 'epan/dissectors/packet-tns.c')
-rw-r--r-- | epan/dissectors/packet-tns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tns.c b/epan/dissectors/packet-tns.c index 82967fd433..f94e36d71a 100644 --- a/epan/dissectors/packet-tns.c +++ b/epan/dissectors/packet-tns.c @@ -861,7 +861,7 @@ dissect_tns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) tcp_dissect_pdus(tvb, pinfo, tree, tns_desegment, 2, get_tns_pdu_len, dissect_tns_pdu, data); - return tvb_length(tvb); + return tvb_captured_length(tvb); } static int @@ -972,7 +972,7 @@ dissect_tns_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data break; } - return tvb_length(tvb); + return tvb_captured_length(tvb); } void proto_register_tns(void) |