properly terminate EAP authentication if EAP method fails
authorMartin Willi <martin@strongswan.org>
Wed, 20 May 2009 07:24:18 +0000 (09:24 +0200)
committerMartin Willi <martin@strongswan.org>
Wed, 20 May 2009 07:24:18 +0000 (09:24 +0200)
src/charon/sa/authenticators/eap_authenticator.c

index 1bd8e78..2abdf7a 100644 (file)
@@ -509,7 +509,11 @@ static status_t process_client(private_eap_authenticator_t *this,
                        case EAP_REQUEST:
                        {
                                this->eap_payload = client_process_eap(this, eap_payload);
-                               return NEED_MORE;
+                               if (this->eap_payload)
+                               {
+                                       return NEED_MORE;
+                               }
+                               return FAILED;
                        }
                        case EAP_SUCCESS:
                        {