From 5cea67247a4db8cf69d294cffba1513e105be275 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sat, 21 Jun 2025 07:27:40 -0400 Subject: [PATCH] swap error condition so that it's correct arguably we should also print out the error name, too. But that's a bit more work, so we leave it for later --- src/modules/rlm_eap/types/rlm_eap_teap/eap_teap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/rlm_eap/types/rlm_eap_teap/eap_teap.c b/src/modules/rlm_eap/types/rlm_eap_teap/eap_teap.c index b96b7de5ca..e85404b846 100644 --- a/src/modules/rlm_eap/types/rlm_eap_teap/eap_teap.c +++ b/src/modules/rlm_eap/types/rlm_eap_teap/eap_teap.c @@ -530,10 +530,10 @@ unexpected: */ if (status) { if (status == EAP_TEAP_TLV_RESULT_FAILURE) { - if (!error) { + if (error) { REDEBUG("Phase 2: Received Result TLV from peer which indicates failure with error %u. Rejecting request.", error); } else { - REDEBUG("Phase 2: Received Result from peer which indicates failure. Rejecting request."); + REDEBUG("Phase 2: Received Result TLV from peer which indicates failure. Rejecting request."); } return 0; } -- 2.47.2