]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix endless loop in PSK fetching with PSK-from-RADIUS
authorMichael Braun <michael-dev@fami-braun.de>
Sat, 4 Aug 2012 17:55:47 +0000 (20:55 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 4 Aug 2012 17:55:47 +0000 (20:55 +0300)
commit59dff51dc84e83da0778e954a64f030865d864bd
tree95e34e4935c79e96d87f9ce9d230bc1ca22647a9
parentaddde1399ec4f5ddf448ad738274e1fb6c9d9b03
Fix endless loop in PSK fetching with PSK-from-RADIUS

Commit 05ab9712b9977192b713f01f07c3b14ca4d1ba78 added support for
fetching WPA PSK from an external RADIUS server and changed
hostapd_wpa_auth_get_psk() to always return the RADIUS supplied PSK (if
set) and ignore the prev_psk parameter for iteration. Fix this by
appending the RADIUS supplied PSK to the list iterated by
hostapd_get_psk and thus returning NULL when prev_psk == sta->psk
(RADIUS).

Signed-hostap: M. Braun <michael-dev@fami-braun.de>
src/ap/wpa_auth_glue.c