mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
exactly one ID can match (ITS#5791; further fix previous commit)
This commit is contained in:
parent
93f3ae50db
commit
1dd88a8b11
1 changed files with 7 additions and 3 deletions
|
|
@ -720,10 +720,14 @@ equality_candidates(
|
|||
if ( ava->aa_desc == slap_schema.si_ad_entryDN ) {
|
||||
EntryInfo *ei = NULL;
|
||||
rc = bdb_cache_find_ndn( op, rtxn, &ava->aa_value, &ei );
|
||||
if ( rc == LDAP_SUCCESS )
|
||||
bdb_idl_insert( ids, ei->bei_id );
|
||||
if ( ei )
|
||||
if ( rc == LDAP_SUCCESS ) {
|
||||
/* exactly one ID can match */
|
||||
ids[0] = 1;
|
||||
ids[1] = ei->bei_id;
|
||||
}
|
||||
if ( ei ) {
|
||||
bdb_cache_entryinfo_unlock( ei );
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue