forked from osmocom/wireshark
IEEE 802.11: fix a segmentation fault introduced in gd6eda2a3
Bug: 14114 Change-Id: Ie377b1b3ccf29014935b9e5796567cdb8bb466a3 Reviewed-on: https://code.wireshark.org/review/23893 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
2a8ab239bd
commit
5ad0579beb
|
@ -6032,7 +6032,8 @@ dissect_advertisement_protocol_common(packet_info *pinfo, proto_tree *tree,
|
|||
proto_tree_add_item(adv_tuple_tree, hf_ieee80211_tag_adv_vs_len, tvb, offset, 1, ENC_NA);
|
||||
offset += 1;
|
||||
left -= 1;
|
||||
*type = ADV_PROTO_ID_VS;
|
||||
if (type)
|
||||
*type = ADV_PROTO_ID_VS;
|
||||
if (len > left) {
|
||||
expert_add_info_format(pinfo, item, &ei_ieee80211_tag_length,
|
||||
"Vendor specific info length error");
|
||||
|
|
Loading…
Reference in New Issue