]> git.sur5r.net Git - openldap/commitdiff
Compares get values in the matching rule syntax (see RFC2251, 4.1.7),
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Tue, 23 Oct 2001 09:48:18 +0000 (09:48 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Tue, 23 Oct 2001 09:48:18 +0000 (09:48 +0000)
so we need to tell value_find about this.

servers/slapd/back-bdb/compare.c
servers/slapd/back-ldbm/compare.c

index c60d688995866393290a860daa5c7315be9f637f..0d56a69ef40d64f801a97eab57b1563af748fb8d 100644 (file)
@@ -100,7 +100,9 @@ bdb_compare(
        {
                rc = LDAP_COMPARE_FALSE;
 
-               if ( value_find( ava->aa_desc, a->a_vals, ava->aa_value ) == 0 )
+               if ( value_find_ex( ava->aa_desc,
+                                   SLAP_MR_VALUE_IS_IN_MR_SYNTAX,
+                                   a->a_vals, ava->aa_value ) == 0 )
                {
                        rc = LDAP_COMPARE_TRUE;
                        break;
@@ -124,4 +126,4 @@ done:
        }
 
        return rc;
-}
\ No newline at end of file
+}
index ba1ee41e70223e17189e0c0aa473b3f9543d3205..b722de01fb592a12f620e50463389b686b4953da 100644 (file)
@@ -99,7 +99,9 @@ ldbm_back_compare(
        {
                rc = LDAP_COMPARE_FALSE;
 
-               if ( value_find( ava->aa_desc, a->a_vals, ava->aa_value ) == 0 )
+               if ( value_find_ex( ava->aa_desc,
+                                   SLAP_MR_VALUE_IS_IN_MR_SYNTAX,
+                                   a->a_vals, ava->aa_value ) == 0 )
                {
                        rc = LDAP_COMPARE_TRUE;
                        break;