forked from osmocom/wireshark
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:
parent
48a6ea0e05
commit
c462f72273
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue