]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use autofreeing of autz_ctx
authorNick Porter <nick@portercomputing.co.uk>
Wed, 1 Oct 2025 15:56:49 +0000 (16:56 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 1 Oct 2025 15:56:49 +0000 (16:56 +0100)
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

index 28398dd8f73d6055281728ece4c72017a01d20ef..3b45bd3f9fce2d4bad3b452dda3c97edac3814bc 100644 (file)
@@ -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;
 }