From: Jouni Malinen Date: Sat, 21 Apr 2012 16:46:58 +0000 (+0300) Subject: Fix validation of PSK-from-RADIUS-server required response X-Git-Tag: hostap_2_0~715 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ceb0e1778b0306488bf7546c1edb3b67531fee1;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/ap/ieee802_11_auth.c b/src/ap/ieee802_11_auth.c index 27b078928..0c4c5f327 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;