From be6fb606915f4ccc68a62195619d176cd62f79f9 Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Mon, 22 Jun 2015 09:59:50 -0700 Subject: Remove a bunch of deprecated tvb_length calls Change-Id: I9362e0fdc4519ba5f3d656152966e7030f478839 Reviewed-on: https://code.wireshark.org/review/9022 Petri-Dish: Evan Huus Tested-by: Petri Dish Buildbot Reviewed-by: Evan Huus --- epan/dissectors/packet-tns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-tns.c') diff --git a/epan/dissectors/packet-tns.c b/epan/dissectors/packet-tns.c index 530b7f1b04..ee4c7ff2b3 100644 --- a/epan/dissectors/packet-tns.c +++ b/epan/dissectors/packet-tns.c @@ -776,7 +776,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 @@ -887,7 +887,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) -- cgit v1.2.3