]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix validation of PSK-from-RADIUS-server required response
authorJouni Malinen <j@w1.fi>
Sat, 21 Apr 2012 16:46:58 +0000 (19:46 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 21 Apr 2012 16:46:58 +0000 (19:46 +0300)
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>

src/ap/ieee802_11_auth.c

index 27b0789286acb94cc77847f4b6fa29b150fdf04b..0c4c5f3274aec1bf431b52984f059b861c24f73f 100644 (file)
@@ -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;