diff options
author | Jouni Malinen <j@w1.fi> | 2012-04-21 19:46:58 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-04-21 19:46:58 +0300 |
commit | 1ceb0e1778b0306488bf7546c1edb3b67531fee1 (patch) | |
tree | 6f5c5ecdda6483426643641567c8e72d7c779646 | |
parent | fcbf0b0ca9e5657d558e09aebc50123409287740 (diff) | |
download | external_wpa_supplicant_8_ti-1ceb0e1778b0306488bf7546c1edb3b67531fee1.zip external_wpa_supplicant_8_ti-1ceb0e1778b0306488bf7546c1edb3b67531fee1.tar.gz external_wpa_supplicant_8_ti-1ceb0e1778b0306488bf7546c1edb3b67531fee1.tar.bz2 |
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>
-rw-r--r-- | src/ap/ieee802_11_auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ap/ieee802_11_auth.c b/src/ap/ieee802_11_auth.c index 27b0789..0c4c5f3 100644 --- a/src/ap/ieee802_11_auth.c +++ b/src/ap/ieee802_11_auth.c @@ -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 && - cache->psk == NULL) + !cache->has_psk) cache->accepted = HOSTAPD_ACL_REJECT; } else cache->accepted = HOSTAPD_ACL_REJECT; |