From 5331c274e0e75388315b01af9dddd744baf730f5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 6 Dec 2011 13:02:23 +0200 Subject: [PATCH] EAP server: Force identity request after eapRestart for passthrough Fix start of reauthentication after failed authentication with passthrough (external AAA server) to use internal EAP Identity method. Signed-hostap: Jouni Malinen --- src/eap_server/eap_server.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/eap_server/eap_server.c b/src/eap_server/eap_server.c index 4483508ce..7a5beb6d9 100644 --- a/src/eap_server/eap_server.c +++ b/src/eap_server/eap_server.c @@ -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;