diff options
author | Martin Willi <martin@strongswan.org> | 2009-05-20 09:24:18 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-05-20 09:24:18 +0200 |
commit | cd37e13133988718276aac1546b4af40c324b9ca (patch) | |
tree | 1ccd8efb264429c77338f411d24430f0a3044e55 | |
parent | 8affd7ac65835fd3c6cd79876c4911c9246af06f (diff) | |
download | strongswan-cd37e13133988718276aac1546b4af40c324b9ca.tar.bz2 strongswan-cd37e13133988718276aac1546b4af40c324b9ca.tar.xz |
properly terminate EAP authentication if EAP method fails
-rw-r--r-- | src/charon/sa/authenticators/eap_authenticator.c | 6 |
1 files changed, 5 insertions, 1 deletions
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: { |