From: Howard Chu Date: Sun, 25 Dec 2022 11:21:32 +0000 (+0000) Subject: ITS#9966 slapo-pcache: fix crash in consistency_check X-Git-Tag: OPENLDAP_REL_ENG_2_5_14~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e103e0cb8f446a2824eea8736871e48a11fcaaec;p=thirdparty%2Fopenldap.git ITS#9966 slapo-pcache: fix crash in consistency_check --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 423c19641e..726eaeb073 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -3514,7 +3514,7 @@ consistency_check( Operation *op; CachedQuery *query, *qprev; - CachedQuery *expires = NULL; + CachedQuery *expires; int return_val, pause = PCACHE_CC_PAUSED; QueryTemplate *templ; @@ -3537,6 +3537,7 @@ consistency_check( time_t ttl; if ( !templ->query_last ) continue; pause = 0; + expires = NULL; op->o_time = slap_get_time(); if ( !templ->ttr ) { ttl = templ->ttl;