From: Alan T. DeKok Date: Thu, 23 Aug 2012 14:11:44 +0000 (+0200) Subject: Fix name so it works X-Git-Tag: release_2_2_0~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68880be659c7e782d44672a0ec367b36e7952dc8;p=thirdparty%2Ffreeradius-server.git Fix name so it works --- diff --git a/raddb/modules/cache b/raddb/modules/cache index edc82395734..5e42a626046 100644 --- a/raddb/modules/cache +++ b/raddb/modules/cache @@ -51,9 +51,9 @@ cache { # You can specify which list the attribute goes into by # prefixing the attribute name with the list. This allows # you to update multiple lists with one configuration. - attributes { + update cache { # list:Attr-Name - reply:Filter-Id := "%l" + reply:Filter-Id += "%l" control:Class := 0x010203 } diff --git a/src/modules/rlm_cache/rlm_cache.c b/src/modules/rlm_cache/rlm_cache.c index ef24f61c75f..6a651bec33b 100644 --- a/src/modules/rlm_cache/rlm_cache.c +++ b/src/modules/rlm_cache/rlm_cache.c @@ -289,7 +289,7 @@ static rlm_cache_entry_t *cache_add(rlm_cache_t *inst, REQUEST *request, /* - * Verify that the "attributes" section makes sense. + * Verify that the cache section makes sense. */ static int cache_verify(rlm_cache_t *inst) { @@ -432,7 +432,7 @@ static int cache_instantiate(CONF_SECTION *conf, void **instance) return -1; } - inst->cs = cf_section_sub_find(conf, "attributes"); + inst->cs = cf_section_sub_find(conf, "update"); if (!inst->cs) { radlog(L_ERR, "rlm_cache: Failed to find \"attributes\" subsection"); cache_detach(inst);