From dd34307cf76df47fdb48307dabf4dc2f6f8221ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julio=20S=C3=A1nchez=20Fern=C3=A1ndez?= Date: Mon, 22 Oct 2001 20:07:06 +0000 Subject: [PATCH] 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. --- servers/slapd/filterentry.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 ); -- 2.39.5