From: Alan T. DeKok Date: Sun, 17 Mar 2013 02:31:38 +0000 (-0400) Subject: talloc from instance context X-Git-Tag: release_3_0_0_beta1~722 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5049435c5aa8a518867e15d26125c829e0945f3;p=thirdparty%2Ffreeradius-server.git talloc from instance context --- diff --git a/src/modules/rlm_cache/rlm_cache.c b/src/modules/rlm_cache/rlm_cache.c index 01afa10d898..92ef397c63d 100644 --- a/src/modules/rlm_cache/rlm_cache.c +++ b/src/modules/rlm_cache/rlm_cache.c @@ -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;