* Update the expiry time based on the TTL.
* A TTL of 0 means "delete from the cache".
*/
- vp = pairfind(request->config_items, PW_CACHE_TTL);
+ vp = pairfind(request->config_items, PW_CACHE_TTL, 0);
if (vp) {
if (vp->vp_integer == 0) goto delete;
/*
* TTL of 0 means "don't cache this entry"
*/
- vp = pairfind(request->config_items, PW_CACHE_TTL);
+ vp = pairfind(request->config_items, PW_CACHE_TTL, 0);
if (vp && (vp->vp_integer == 0)) return NULL;
c = rad_malloc(sizeof(*c));
/*
* If yes, only return whether we found a valid cache entry
*/
- vp = pairfind(request->config_items, PW_CACHE_STATUS_ONLY);
+ vp = pairfind(request->config_items, PW_CACHE_STATUS_ONLY, 0);
if (vp && vp->vp_integer) {
return c ?
RLM_MODULE_OK: