From: Arran Cudbard-Bell Date: Thu, 5 Jun 2025 02:23:06 +0000 (-0600) Subject: Explicitly check for failure X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24463513cf8e8fb7e375414301d8b3946f41d83c;p=thirdparty%2Ffreeradius-server.git Explicitly check for failure --- diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index a08dd785bdc..72489128288 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -1986,7 +1986,7 @@ static unlang_action_t CC_HINT(nonnull) mod_authorize(unlang_result_t *p_result, if (unlikely(unlang_module_yield(request, mod_authorize_resume, mod_authorize_cancel, ~FR_SIGNAL_CANCEL, - autz_ctx) != UNLANG_ACTION_YIELD)) { + autz_ctx) == UNLANG_ACTION_FAIL)) { talloc_free(autz_ctx); RETURN_UNLANG_FAIL; }