802.11: fix Length error shown for IE BSS AC Access Delay/WAPI Parameter Set (68)

Issue reported by Ted Wards

Bug:12223
Change-Id: I38adba8ee3d48788afce20d969d708c7635c8703
Reviewed-on: https://code.wireshark.org/review/14302
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Alexis La Goutte 2016-03-02 20:59:05 +01:00 committed by Michael Mann
parent 79ead47bb4
commit 77a51512e2
1 changed files with 1 additions and 1 deletions

View File

@ -12555,7 +12555,7 @@ dissect_bss_ac_access_delay_ie(tvbuff_t *tvb, packet_info *pinfo,
proto_tree *tree, int offset, guint32 tag_len, proto_item *ti_len)
{
if (tag_len == 4) {
if (tag_len != 4) {
expert_add_info_format(pinfo, ti_len, &ei_ieee80211_tag_length,
"BSS AC Access Delay length %u wrong, must = 4", tag_len);
return offset;