]> git.sur5r.net Git - openldap/commitdiff
When checking if an entry matches some filter, we have the list of
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Mon, 22 Oct 2001 20:07:06 +0000 (20:07 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Mon, 22 Oct 2001 20:07:06 +0000 (20:07 +0000)
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

index deb47e4b8099b2b8a7790e819be9213b02e29260..3f5ec48ab916303531336256be802d506b300ec2 100644 (file)
@@ -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 );