]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
EAP-TEAP server: Require Intermediate-Result TLV even with Result TLV
authorJouni Malinen <j@w1.fi>
Fri, 16 Aug 2019 20:12:54 +0000 (23:12 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 16 Aug 2019 21:08:47 +0000 (00:08 +0300)
It is not sufficient for the peer to include only the Result TLV if the
server included both the Intermediate-Result TLV and Result TLV.

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

index dd8ffd3dbba746938ba5b127ec96034629e6d996..ac2339aa43abef68d7f4a02c86c935702731f753 100644 (file)
@@ -1446,7 +1446,7 @@ static void eap_teap_process_phase2_tlvs(struct eap_sm *sm,
                        return;
                }
 
-               if (!data->final_result &&
+               if (sm->eap_teap_auth != 1 &&
                    tlv.iresult != TEAP_STATUS_SUCCESS) {
                        wpa_printf(MSG_DEBUG,
                                   "EAP-TEAP: Crypto-Binding TLV without intermediate Success Result");