FILS: Fix FILS Realm Information ANQP-element construction
The loop to add hash values was supposed to be limited to at most 10000 values, but the count variable was not being decremented in the loop. Fix this by decrementing counting for each iteration. This fixes ANQP-element format in the unlikely case of there being more than 10000 configuration realms. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
76196ddb2b
commit
aeff0645d2
1 changed files with 1 additions and 0 deletions
|
@ -580,6 +580,7 @@ static void anqp_add_fils_realm_info(struct hostapd_data *hapd,
|
|||
if (count == 0)
|
||||
break;
|
||||
wpabuf_put_data(buf, realm->hash, 2);
|
||||
count--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue