From d2a0c034c155f576634bdcb1ae6e2597e45baf9a Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 29 Jan 2020 09:10:13 +0100 Subject: [PATCH] method_tls_tunnel: Declare authentication success according to EAP It is usually the outer EAP-Success/Failure message that confirm the authentication is gracefully over. Signed-off-by: Simon Rozman --- lib/TTLS/src/Method.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TTLS/src/Method.cpp b/lib/TTLS/src/Method.cpp index 93b6e6c..a02d5cf 100644 --- a/lib/TTLS/src/Method.cpp +++ b/lib/TTLS/src/Method.cpp @@ -550,7 +550,7 @@ EapPeerMethodResponseAction eap::method_tls_tunnel::process_request_packet( m_module.log_event(&EAPMETHOD_TLS_QUERY_FAILED, event_data((unsigned int)SECPKG_ATTR_CONNECTION_INFO), event_data(status), event_data::blank); m_phase = phase_t::finished; - m_cfg.m_last_status = config_method::status_t::success; + m_cfg.m_last_status = config_method::status_t::auth_failed; // Blame protocol if we fail beyond this point. method_mschapv2_diameter *inner_mschapv2 = dynamic_cast(m_inner.get()); if (inner_mschapv2) {