ITS#9966 slapo-pcache: fix crash in consistency_check

This commit is contained in:
Howard Chu 2022-12-25 11:21:32 +00:00
parent 0acf148af2
commit 3ebe6625c1

View file

@ -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;