]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correctly parent cache entry
authorNick Porter <nick@portercomputing.co.uk>
Thu, 22 Feb 2024 19:43:45 +0000 (19:43 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 22 Feb 2024 19:43:45 +0000 (19:43 +0000)
src/modules/rlm_radutmp/rlm_radutmp.c

index c28772a88b832b9ca29d93c81ff3d32effe727ca..5d270a5b0bbaf6d5502a4fd1f47e8b6d3ff63401 100644 (file)
@@ -491,7 +491,7 @@ static unlang_action_t CC_HINT(nonnull) mod_accounting(rlm_rcode_t *p_result, mo
                 *      easier than searching through the entire file.
                 */
                if (!cache) {
-                       cache = talloc_zero(NULL, NAS_PORT);
+                       cache = talloc_zero(inst, NAS_PORT);
                        if (cache) {
                                cache->nasaddr = ut.nas_address;
                                cache->port = ut.nas_port;