mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-11 14:53:13 -05:00
improve last commit
This commit is contained in:
parent
c54a8de9c8
commit
f1f18f7b93
1 changed files with 2 additions and 9 deletions
|
|
@ -183,18 +183,11 @@ static int test_mra_filter(
|
|||
}
|
||||
|
||||
if ( mra->ma_desc == slap_schema.si_ad_entryDN ) {
|
||||
struct berval *bv;
|
||||
int ret, rc;
|
||||
const char *text;
|
||||
|
||||
if( mra->ma_rule == a->a_desc->ad_type->sat_equality ) {
|
||||
bv = &e->e_nname;
|
||||
} else {
|
||||
bv = &e->e_name;
|
||||
}
|
||||
|
||||
rc = value_match( &ret, a->a_desc, mra->ma_rule, 0,
|
||||
bv, &mra->ma_value, &text );
|
||||
rc = value_match( &ret, slap_schema.si_ad_entryDN, mra->ma_rule,
|
||||
0, &e->e_nname, &mra->ma_value, &text );
|
||||
|
||||
if( rc != LDAP_SUCCESS ) return rc;
|
||||
if ( ret == 0 ) return LDAP_COMPARE_TRUE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue