]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Parent the cache entries off the cache
authorNick Porter <nick@portercomputing.co.uk>
Thu, 24 Jul 2025 14:32:45 +0000 (15:32 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 24 Jul 2025 14:32:45 +0000 (15:32 +0100)
src/modules/rlm_dpsk/rlm_dpsk.c

index 77cf2331215d00562a20d83adc1db2c5ab6425ed..fa3b2766751def4d94015c0863d339779a94d66d 100644 (file)
@@ -755,7 +755,7 @@ make_digest:
                                rbtree_deletebydata(inst->cache, entry); /* locks and unlinks the entry */
                        }
 
-                       MEM(entry = talloc_zero(NULL, rlm_dpsk_cache_t));
+                       MEM(entry = talloc_zero(inst->cache, rlm_dpsk_cache_t));
 
                        memcpy(entry->mac, s_mac, sizeof(entry->mac));
                        memcpy(entry->pmk, pmk, sizeof(entry->pmk));