properly terminate EAP authentication if EAP method fails

This commit is contained in:
Martin Willi
2009-05-20 09:24:18 +02:00
parent 8affd7ac65
commit cd37e13133
@@ -509,7 +509,11 @@ static status_t process_client(private_eap_authenticator_t *this,
case EAP_REQUEST: case EAP_REQUEST:
{ {
this->eap_payload = client_process_eap(this, eap_payload); this->eap_payload = client_process_eap(this, eap_payload);
return NEED_MORE; if (this->eap_payload)
{
return NEED_MORE;
}
return FAILED;
} }
case EAP_SUCCESS: case EAP_SUCCESS:
{ {