IEEE802.11: WAN Metrics Length Check Update

Replaced tvb_captured_length_remaining() with
tvb_reported_length_remaining().

Change-Id: I87c07488590cd82ca8a945ac6f13efa45807e55b
Reviewed-on: https://code.wireshark.org/review/37098
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Matthew Weant 2020-05-04 06:48:36 -07:00 committed by Anders Broman
parent 48a6ea0e05
commit c462f72273
1 changed files with 3 additions and 0 deletions

View File

@ -8073,6 +8073,9 @@ dissect_hs20_anqp_wan_metrics(proto_tree *tree, tvbuff_t *tvb, int offset, gbool
if (request)
return;
if(tvb_reported_length_remaining(tvb, offset) < 13)
return;
proto_tree_add_item(tree, hf_ieee80211_hs20_anqp_wan_metrics_link_status,
tvb, offset, 1, ENC_LITTLE_ENDIAN);
proto_tree_add_item(tree, hf_ieee80211_hs20_anqp_wan_metrics_symmetric_link,