Commit 1dd88a8b authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

exactly one ID can match (ITS#5791; further fix previous commit)

parent 93f3ae50
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment