Revert "EAP server: Force identity request after INITIALIZE for passthrough"
authorJouni Malinen <j@w1.fi>
Tue, 6 Dec 2011 10:47:17 +0000 (12:47 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 6 Dec 2011 10:47:17 +0000 (12:47 +0200)
This reverts commit 204dd3f420bb1ddce02d13d7a366169e0bda914d.
start_reauth was not supposed to be used in this way and setting it
to TRUE in INITIALIZE breaks internal EAP server.

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

src/eap_server/eap_server.c

index 0f4284f..4483508 100644 (file)
@@ -169,13 +169,6 @@ SM_STATE(EAP, INITIALIZE)
        sm->num_rounds = 0;
        sm->method_pending = METHOD_PENDING_NONE;
 
-       /*
-        * Start reauthentication with identity request even though we know the
-        * previously used identity. This is needed to get reauthentication
-        * started properly.
-        */
-       sm->start_reauth = TRUE;
-
        wpa_msg(sm->msg_ctx, MSG_INFO, WPA_EVENT_EAP_STARTED
                MACSTR, MAC2STR(sm->peer_addr));
 }
@@ -596,6 +589,13 @@ SM_STATE(EAP, SUCCESS2)
        }
 
        sm->eap_if.eapSuccess = TRUE;
+
+       /*
+        * Start reauthentication with identity request even though we know the
+        * previously used identity. This is needed to get reauthentication
+        * started properly.
+        */
+       sm->start_reauth = TRUE;
 }