ieee80211: Fix length in vendor specific ANQP data subset

For Vendor Specific ANQP element the OUI is not included in the packet
subset dissected by the anqp vendor specific function so adapt the
length accordingly.

Bug: 16494
Change-Id: I8082fdabc379cb3ea71c01e6fb009f49afd16dff
Reviewed-on: https://code.wireshark.org/review/36866
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:
Cedric Izoard 2020-04-14 20:35:07 +02:00 committed by Anders Broman
parent 5d0bff5c40
commit cad371a59d
1 changed files with 1 additions and 1 deletions

View File

@ -8630,7 +8630,7 @@ dissect_anqp_info(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offse
case ANQP_INFO_ANQP_VENDOR_SPECIFIC_LIST:
proto_tree_add_item_ret_uint(tree, hf_ieee80211_tag_oui, tvb, offset, 3, ENC_BIG_ENDIAN, &oui);
offset += 3;
vendor_tvb = tvb_new_subset_length(tvb, offset, len);
vendor_tvb = tvb_new_subset_length(tvb, offset, len - 3);
anqp_info.request = request;
anqp_info.idx = idx;