]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - build-utilities/hostap.git/commitdiff
EAP server: Force identity request after eapRestart for passthrough
authorJouni Malinen <j@w1.fi>
Tue, 6 Dec 2011 11:02:23 +0000 (13:02 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 6 Dec 2011 11:02:23 +0000 (13:02 +0200)
Fix start of reauthentication after failed authentication with
passthrough (external AAA server) to use internal EAP Identity method.

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

src/eap_server/eap_server.c

index 4483508ceb4066b0bb14fdd2da8082707622c313..7a5beb6d916d2ec11f23a6a4f2a9c8af9b63545f 100644 (file)
@@ -136,6 +136,14 @@ SM_STATE(EAP, INITIALIZE)
 {
        SM_ENTRY(EAP, INITIALIZE);
 
+       if (sm->eap_if.eapRestart && !sm->eap_server && sm->identity) {
+               /*
+                * Need to allow internal Identity method to be used instead
+                * of passthrough at the beginning of reauthentication.
+                */
+               eap_server_clear_identity(sm);
+       }
+
        sm->currentId = -1;
        sm->eap_if.eapSuccess = FALSE;
        sm->eap_if.eapFail = FALSE;