]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix REAUTHENTICATE command after PMKSA caching
authorJouni Malinen <j@w1.fi>
Sun, 25 Nov 2012 20:05:32 +0000 (22:05 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 25 Nov 2012 20:05:32 +0000 (22:05 +0200)
The current PMKSA cache entry needs to be clear to allow EAPOL
reauthentication to be started in case this association used PMKSA
caching.

Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/ctrl_iface.c

index 57e42d5ff2223afc13a272c34c3b24371c369dc9..5bfa890d575d9ac70b0667862eb72cee59782375 100644 (file)
@@ -5219,6 +5219,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
                        reply_len = -1;
 #endif /* CONFIG_AUTOSCAN */
        } else if (os_strcmp(buf, "REAUTHENTICATE") == 0) {
+               pmksa_cache_clear_current(wpa_s->wpa);
                eapol_sm_request_reauth(wpa_s->eapol);
        } else {
                os_memcpy(reply, "UNKNOWN COMMAND\n", 16);