From cd37e13133988718276aac1546b4af40c324b9ca Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Wed, 20 May 2009 09:24:18 +0200 Subject: [PATCH] properly terminate EAP authentication if EAP method fails --- src/charon/sa/authenticators/eap_authenticator.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/charon/sa/authenticators/eap_authenticator.c b/src/charon/sa/authenticators/eap_authenticator.c index 1bd8e7898..2abdf7a02 100644 --- a/src/charon/sa/authenticators/eap_authenticator.c +++ b/src/charon/sa/authenticators/eap_authenticator.c @@ -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: {