From 8bc294c0d12e742d8c539177a683eff16653b31b Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Tue, 23 Jun 2015 11:24:48 -0700 Subject: Replace more deprecated tvb_length calls The return values of new-style dissectors always use the captured length, so replace those automagically with sed. Change-Id: Ic43072ee4a80d433cd4264444583a0e670adc26a Reviewed-on: https://code.wireshark.org/review/9065 Reviewed-by: Evan Huus --- epan/dissectors/packet-ipdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-ipdc.c') diff --git a/epan/dissectors/packet-ipdc.c b/epan/dissectors/packet-ipdc.c index 5a8a66b2ea..765f7a2fe0 100644 --- a/epan/dissectors/packet-ipdc.c +++ b/epan/dissectors/packet-ipdc.c @@ -933,7 +933,7 @@ dissect_ipdc_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* d } col_set_fence(pinfo->cinfo, COL_INFO); - return tvb_length(tvb); + return tvb_captured_length(tvb); } static int @@ -947,7 +947,7 @@ dissect_ipdc_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data { tcp_dissect_pdus(tvb, pinfo, tree, ipdc_desegment, 4, get_ipdc_pdu_len, dissect_ipdc_tcp_pdu, data); - return tvb_length(tvb); + return tvb_captured_length(tvb); } void -- cgit v1.2.3