]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Explicitly check for failure
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 5 Jun 2025 02:23:06 +0000 (20:23 -0600)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 18 Jun 2025 12:53:17 +0000 (13:53 +0100)
src/modules/rlm_ldap/rlm_ldap.c

index a08dd785bdcacee04bdefdc55eb0c115c35a07f9..72489128288e863d30b1428cd4e5e965dbb5ae26 100644 (file)
@@ -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;
        }