aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-12-06 13:02:23 +0200
committerJouni Malinen <j@w1.fi>2011-12-06 13:02:23 +0200
commit5331c274e0e75388315b01af9dddd744baf730f5 (patch)
tree48453ebd1035aeb9308679e3997b2647c260153b /src/eap_server
parent4a9e26b6e712b21f2ab6f417382a33682efa4795 (diff)
downloadexternal_wpa_supplicant_8_ti-5331c274e0e75388315b01af9dddd744baf730f5.zip
external_wpa_supplicant_8_ti-5331c274e0e75388315b01af9dddd744baf730f5.tar.gz
external_wpa_supplicant_8_ti-5331c274e0e75388315b01af9dddd744baf730f5.tar.bz2
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 <j@w1.fi>
Diffstat (limited to 'src/eap_server')
-rw-r--r--src/eap_server/eap_server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eap_server/eap_server.c b/src/eap_server/eap_server.c
index 4483508..7a5beb6 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;