From b7ed9d076fbc1b530e3055de212f18e5bbb4a0d2 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 6 Sep 2016 10:02:55 +0200 Subject: [PATCH] When inner method admits its authentication (credentials) failed, failed authentication flag for outer method is cleared --- lib/TTLS/src/Method.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/TTLS/src/Method.cpp b/lib/TTLS/src/Method.cpp index 2e21a1e..4f7f6b9 100644 --- a/lib/TTLS/src/Method.cpp +++ b/lib/TTLS/src/Method.cpp @@ -129,6 +129,12 @@ void eap::method_ttls::get_result( m_inner->get_result(reason, &result); if (result.fSaveConnectionData) ppResult->fSaveConnectionData = TRUE; + + if (m_inner->m_cfg.m_auth_failed) { + // Inner method admitted its credentials failed, so autentication must have proceeded to inner authentication already. + // Therefore, outer credentials must have been OK. + m_cfg.m_auth_failed = false; + } } }