]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-TEAP peer: Fix protected indication of inner EAP method failure
authorJouni Malinen <j@w1.fi>
Sat, 24 Aug 2019 13:55:26 +0000 (16:55 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 24 Aug 2019 13:56:41 +0000 (16:56 +0300)
Need to leave EAP-TEAP methodState == MAY_CONT when marking decision =
FAIL based on inner EAP method failure since this message will be
followed by protected failure indication.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/eap_teap.c

index 1e351f3653686106c059ff1354bad7af947b6670..e2416f180c5a3ac8358486361b77c9b3c3231462 100644 (file)
@@ -458,7 +458,8 @@ static int eap_teap_phase2_request(struct eap_sm *sm,
        if (!(*resp) ||
            (iret.methodState == METHOD_DONE &&
             iret.decision == DECISION_FAIL)) {
-               ret->methodState = METHOD_DONE;
+               /* Wait for protected indication of failure */
+               ret->methodState = METHOD_MAY_CONT;
                ret->decision = DECISION_FAIL;
        } else if ((iret.methodState == METHOD_DONE ||
                    iret.methodState == METHOD_MAY_CONT) &&