]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10270 slapo-pcache: ttr was not being applied to negatively cached entries
authorAndrew Elble <aweits@rit.edu>
Fri, 11 Oct 2024 12:37:13 +0000 (08:37 -0400)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 6 May 2025 15:19:42 +0000 (15:19 +0000)
servers/slapd/overlays/pcache.c

index 3a1e18acdb212aecef2892230e05c35250236028..3df310e4c07605f922c8c40cd2bb1ab902f2c2ca 100644 (file)
@@ -1580,6 +1580,8 @@ add_query(
 
        case PC_NEGATIVE:
                ttl = templ->negttl;
+               if ( templ->ttr )
+                       ttr = now + templ->ttr;
                break;
 
        case PC_SIZELIMIT: