We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d97565 commit 6025492Copy full SHA for 6025492
src/modules/rlm_cache/rlm_cache.c
@@ -1378,7 +1378,11 @@ static unlang_action_t CC_HINT(nonnull) mod_method_ttl(unlang_result_t *p_result
1378
ttl = inst->config.ttl; /* Set the default value from cache { ttl=... } */
1379
vp = fr_pair_find_by_da(&request->control_pairs, NULL, attr_cache_ttl);
1380
if (vp) {
1381
- if (vp->vp_int32 < 0) {
+ if (vp->vp_int32 == 0) {
1382
+ p_result->rcode = RLM_MODULE_NOOP;
1383
+ goto finish;
1384
+
1385
+ } else if (vp->vp_int32 < 0) {
1386
ttl = fr_time_delta_from_sec(-(vp->vp_int32));
1387
/* Updating the TTL */
1388
} else {
0 commit comments