]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
talloc from instance context
authorAlan T. DeKok <aland@freeradius.org>
Sun, 17 Mar 2013 02:31:38 +0000 (22:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Mar 2013 02:31:38 +0000 (22:31 -0400)
src/modules/rlm_cache/rlm_cache.c

index 01afa10d898f9fc14b203068b9be1ea2e29a6d3c..92ef397c63d04acddeb1f30b7ba27e5db4b489ef 100644 (file)
@@ -270,7 +270,7 @@ static rlm_cache_entry_t *cache_add(rlm_cache_t *inst, REQUEST *request,
        vp = pairfind(request->config_items, PW_CACHE_TTL, 0, TAG_ANY);
        if (vp && (vp->vp_integer == 0)) return NULL;
 
-       c = talloc_zero(NULL, rlm_cache_entry_t);
+       c = talloc_zero(inst, rlm_cache_entry_t);
        c->key = talloc_strdup(c, key);
        c->created = c->expires = request->timestamp;