mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
don't try to delete expired entries if database does not exist (ITS#5267)
This commit is contained in:
parent
54a3ef323b
commit
bfd50b6ec5
1 changed files with 10 additions and 1 deletions
|
|
@ -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 a new issue