mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#7741 Fix entryDN index lookup
DN notfound is authoritative, don't ignore the result
This commit is contained in:
parent
ef90999f49
commit
3d1a0bb17e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -696,6 +696,10 @@ equality_candidates(
|
||||
ids[0] = 1;
|
||||
ids[1] = id;
|
||||
}
|
||||
if ( rc == MDB_NOTFOUND ) {
|
||||
MDB_IDL_ZERO( ids );
|
||||
rc = 0;
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user