mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-11 06:43:09 -05:00
ITS#9966 slapo-pcache: fix crash in consistency_check
This commit is contained in:
parent
0acf148af2
commit
3ebe6625c1
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue