WPS: Fix authorized MAC removal
Missing array referencing ended up only the first entry in the list to
be compared.
Fixes: 31fcea931d
("WPS 2.0: Add support for AuthorizedMACs attribute")
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
95123ab3b3
commit
58027cfecc
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ static void wps_registrar_remove_authorized_mac(struct wps_registrar *reg,
|
||||||
wpa_printf(MSG_DEBUG, "WPS: Remove authorized MAC " MACSTR,
|
wpa_printf(MSG_DEBUG, "WPS: Remove authorized MAC " MACSTR,
|
||||||
MAC2STR(addr));
|
MAC2STR(addr));
|
||||||
for (i = 0; i < WPS_MAX_AUTHORIZED_MACS; i++) {
|
for (i = 0; i < WPS_MAX_AUTHORIZED_MACS; i++) {
|
||||||
if (os_memcmp(reg->authorized_macs, addr, ETH_ALEN) == 0)
|
if (os_memcmp(reg->authorized_macs[i], addr, ETH_ALEN) == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i == WPS_MAX_AUTHORIZED_MACS) {
|
if (i == WPS_MAX_AUTHORIZED_MACS) {
|
||||||
|
|
Loading…
Reference in a new issue