From: Julio Sánchez Fernández Date: Mon, 22 Oct 2001 20:07:06 +0000 (+0000) Subject: When checking if an entry matches some filter, we have the list of X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~943 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dd34307cf76df47fdb48307dabf4dc2f6f8221ef;p=openldap When checking if an entry matches some filter, we have the list of values as stored in the entry on the one hand and an assertion value that is not necessarily of the same syntax. So tell value_match this is the case by setting SLAP_MR_VALUE_IS_IN_MR_SYNTAX in flags. --- diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index deb47e4b80..3f5ec48ab9 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -254,7 +254,8 @@ static int test_mra_filter( int rc; const char *text; - rc = value_match( &ret, a->a_desc, mra->ma_rule, 0, + rc = value_match( &ret, a->a_desc, mra->ma_rule, + SLAP_MR_VALUE_IS_IN_MR_SYNTAX, a->a_vals[i], mra->ma_value, &text ); @@ -325,7 +326,8 @@ test_ava_filter( int rc; const char *text; - rc = value_match( &ret, a->a_desc, mr, 0, + rc = value_match( &ret, a->a_desc, mr, + SLAP_MR_VALUE_IS_IN_MR_SYNTAX, a->a_vals[i], ava->aa_value, &text ); @@ -511,7 +513,8 @@ test_substrings_filter( int rc; const char *text; - rc = value_match( &ret, a->a_desc, mr, 0, + rc = value_match( &ret, a->a_desc, mr, + SLAP_MR_VALUE_IS_IN_MR_SYNTAX, a->a_vals[i], f->f_sub, &text );