EAP-MD5: Use conditional success decision
authorJouni Malinen <j@w1.fi>
Sun, 11 Apr 2010 10:43:17 +0000 (13:43 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 Apr 2010 10:43:17 +0000 (13:43 +0300)
The server may still reject authentication at this point, so better
use conditional success decision. This allows the potentially
following EAP-Failure message to be processed properly. [Bug 354]

src/eap_peer/eap_md5.c

index 7961143..0edbae8 100644 (file)
@@ -76,7 +76,7 @@ static struct wpabuf * eap_md5_process(struct eap_sm *sm, void *priv,
 
        wpa_printf(MSG_DEBUG, "EAP-MD5: Generating Challenge Response");
        ret->methodState = METHOD_DONE;
-       ret->decision = DECISION_UNCOND_SUCC;
+       ret->decision = DECISION_COND_SUCC;
        ret->allowNotifications = TRUE;
 
        resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_MD5, 1 + CHAP_MD5_LEN,