mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
Fix validation of PSK-from-RADIUS-server required response
cache->psk is an array and never NULL. The check here needs to check the cache->has_psk flag instead. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
fcbf0b0ca9
commit
1ceb0e1778
@ -493,7 +493,7 @@ hostapd_acl_recv_radius(struct radius_msg *msg, struct radius_msg *req,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hapd->conf->wpa_psk_radius == PSK_RADIUS_REQUIRED &&
|
if (hapd->conf->wpa_psk_radius == PSK_RADIUS_REQUIRED &&
|
||||||
cache->psk == NULL)
|
!cache->has_psk)
|
||||||
cache->accepted = HOSTAPD_ACL_REJECT;
|
cache->accepted = HOSTAPD_ACL_REJECT;
|
||||||
} else
|
} else
|
||||||
cache->accepted = HOSTAPD_ACL_REJECT;
|
cache->accepted = HOSTAPD_ACL_REJECT;
|
||||||
|
Loading…
Reference in New Issue
Block a user