Neighbor report (802.11k) may be have no subelement (len == 13)
Fix some malformed frame from sample on Bug 9724 Change-Id: I0874c2aab57799426f13e18123b05a7e73c6a75f Partialy-Bug:9724 Reviewed-on: https://code.wireshark.org/review/340 Reviewed-by: Evan Huus <eapache@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
57048843e9
commit
53deb521e7
1 changed files with 5 additions and 0 deletions
|
@ -13218,6 +13218,11 @@ add_tagged_field(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset
|
|||
proto_tree_add_item(tree, hf_ieee80211_tag_neighbor_report_phy_type, tvb, offset, 1, ENC_LITTLE_ENDIAN);
|
||||
|
||||
offset += 1;
|
||||
|
||||
/* The Optional Subelements field format contains zero or more subelements */
|
||||
if (tag_len == 13){ /* tag_len == 13 => no Subelements */
|
||||
break;
|
||||
}
|
||||
sub_tag_id = tvb_get_guint8 (tvb, offset);
|
||||
offset += 1;
|
||||
sub_tag_length = tvb_get_guint8 (tvb, offset);
|
||||
|
|
Loading…
Reference in a new issue