From 69cdfe9410e0bc2a3f22a0b499dad19e2323864a Mon Sep 17 00:00:00 2001 From: Evan Huus Date: Tue, 23 Jun 2015 21:30:15 -0700 Subject: Remove another batch of deprecated tvb_length calls Change-Id: Icfdde38e40cca05d0705a081153a4ea3e8782ee7 Reviewed-on: https://code.wireshark.org/review/9086 Reviewed-by: Evan Huus --- epan/dissectors/packet-ieee80211-radiotap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-ieee80211-radiotap.c') diff --git a/epan/dissectors/packet-ieee80211-radiotap.c b/epan/dissectors/packet-ieee80211-radiotap.c index 71c3ba6bec..02ac911a95 100644 --- a/epan/dissectors/packet-ieee80211-radiotap.c +++ b/epan/dissectors/packet-ieee80211-radiotap.c @@ -1689,7 +1689,7 @@ dissect_radiotap(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree) if (captured_length >= reported_length && captured_length > fcs_len) { calc_fcs = - crc32_802_tvb(next_tvb, tvb_length(next_tvb) - fcs_len); + crc32_802_tvb(next_tvb, tvb_captured_length(next_tvb) - fcs_len); /* By virtue of hdr_fcs_ti being set, we know that 'tree' is set, * so there's no need to check it here. */ -- cgit v1.2.3