From: Jouni Malinen Date: Fri, 16 Aug 2019 20:12:54 +0000 (+0300) Subject: EAP-TEAP server: Require Intermediate-Result TLV even with Result TLV X-Git-Tag: hostap_2_10~2452 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=234489efd12b402e9941298eae493335351b0d00;p=thirdparty%2Fhostap.git EAP-TEAP server: Require Intermediate-Result TLV even with Result TLV 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 --- diff --git a/src/eap_server/eap_server_teap.c b/src/eap_server/eap_server_teap.c index dd8ffd3db..ac2339aa4 100644 --- a/src/eap_server/eap_server_teap.c +++ b/src/eap_server/eap_server_teap.c @@ -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");