]> 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:07 +0000 (19:43 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 22 Feb 2024 19:43:07 +0000 (19:43 +0000)
src/modules/rlm_radutmp/rlm_radutmp.c

index b3d0037312a7366a36a87b485d57f927720e1b4b..999e6c49e3965a4cc699e43482010ce54f356950 100644 (file)
@@ -489,7 +489,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_accounting(void *instance, REQUEST *requ
                 *      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;