From 14824e6adf07a1c3cfb6537ce8723d873ecd0d0f Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Thu, 19 Jun 2014 17:18:16 +0000 Subject: Revert "Fixup: tvb_* -> tvb_captured" https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html This reverts commit 246fe2ca4c67d8c98caa84e2f57694f6322e2f96. Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f Reviewed-on: https://code.wireshark.org/review/2430 Reviewed-by: Michael Mann --- epan/dissectors/packet-pppoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-pppoe.c') diff --git a/epan/dissectors/packet-pppoe.c b/epan/dissectors/packet-pppoe.c index 383e767365..fbf8f2e9e6 100644 --- a/epan/dissectors/packet-pppoe.c +++ b/epan/dissectors/packet-pppoe.c @@ -1181,7 +1181,7 @@ static void dissect_pppoes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* * Construct a tvbuff containing the PPP packet. */ - length = tvb_captured_length_remaining(tvb, 6); + length = tvb_length_remaining(tvb, 6); reported_length = tvb_reported_length_remaining(tvb, 6); DISSECTOR_ASSERT(length >= 0); DISSECTOR_ASSERT(reported_length >= 0); -- cgit v1.2.3