From b2ec5ef76fe9a6b5f805807312e27a2f76dd7e4c Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Wed, 1 Oct 2025 16:56:49 +0100 Subject: [PATCH] Use autofreeing of autz_ctx It is parented off a higher stack frame, and if `unlang_module_yield` has been used to set a repeat function, which needs to be done before attempting to submit a query, then `autz_ctx` needs to remain until that repeat has happened. --- src/modules/rlm_ldap/rlm_ldap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/modules/rlm_ldap/rlm_ldap.c b/src/modules/rlm_ldap/rlm_ldap.c index 28398dd8f7..3b45bd3f9f 100644 --- a/src/modules/rlm_ldap/rlm_ldap.c +++ b/src/modules/rlm_ldap/rlm_ldap.c @@ -1909,8 +1909,6 @@ static unlang_action_t CC_HINT(nonnull) mod_authorize_resume(unlang_result_t *p_ p_result->rcode = autz_ctx->rcode; finish: - talloc_free(autz_ctx); - return ret; } -- 2.47.3