ITS#7741 Fix entryDN index lookup

DN notfound is authoritative, don't ignore the result
This commit is contained in:
Howard Chu 2013-11-06 09:39:38 -08:00
parent ef90999f49
commit 3d1a0bb17e
2 changed files with 8 additions and 0 deletions

View File

@ -728,6 +728,10 @@ equality_candidates(
if ( ei ) {
bdb_cache_entryinfo_unlock( ei );
}
if ( rc == DB_NOTFOUND ) {
BDB_IDL_ZERO( ids );
rc = 0;
}
return rc;
}

View File

@ -696,6 +696,10 @@ equality_candidates(
ids[0] = 1;
ids[1] = id;
}
if ( rc == MDB_NOTFOUND ) {
MDB_IDL_ZERO( ids );
rc = 0;
}
return rc;
}