mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
don't try to delete expired entries if database does not exist (ITS#5267)
This commit is contained in:
parent
54a3ef323b
commit
bfd50b6ec5
@ -184,7 +184,16 @@ done_search:;
|
||||
op->o_tmpfree( op->ors_filterstr.bv_val, op->o_tmpmemctx );
|
||||
filter_free_x( op, op->ors_filter );
|
||||
|
||||
if ( rs.sr_err != LDAP_SUCCESS ) {
|
||||
switch ( rs.sr_err ) {
|
||||
case LDAP_SUCCESS:
|
||||
break;
|
||||
|
||||
case LDAP_NO_SUCH_OBJECT:
|
||||
/* (ITS#5267) database not created yet? */
|
||||
rs.sr_err = LDAP_SUCCESS;
|
||||
/* fallthru */
|
||||
|
||||
default:
|
||||
Log1( LDAP_DEBUG_ANY, LDAP_LEVEL_ERR,
|
||||
"DDS expired objects lookup failed err=%d\n",
|
||||
rs.sr_err );
|
||||
|
Loading…
Reference in New Issue
Block a user