From f1f18f7b9339b6f5250e447a52d6e73b4e6b8657 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 8 Sep 2004 21:53:46 +0000 Subject: [PATCH] improve last commit --- servers/slapd/filterentry.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index 5b07863860..6380d45297 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -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; -- 2.39.5