]> git.sur5r.net Git - openldap/commitdiff
SLAP_NVALUES: fix UTF8StringNormalize
authorKurt Zeilenga <kurt@openldap.org>
Fri, 28 Feb 2003 20:00:54 +0000 (20:00 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 28 Feb 2003 20:00:54 +0000 (20:00 +0000)
tests 0-2 now run correctly

servers/slapd/schema_init.c

index d28d25a61c6605b9cc26d507e3516f03c9bd5092..5cd2e04560b1cd64007ea367c29e7e09b5c53160 100644 (file)
@@ -743,7 +743,7 @@ UTF8StringNormalize(
        }
 
        flags = SLAP_MR_ASSOCIATED(mr, slap_schema.si_mr_caseExactMatch )
-               ? LDAP_UTF8_CASEFOLD : LDAP_UTF8_NOCASEFOLD;
+               ? LDAP_UTF8_NOCASEFOLD : LDAP_UTF8_CASEFOLD;
        flags |= ( use & SLAP_MR_EQUALITY_APPROX == SLAP_MR_EQUALITY_APPROX )
                ? LDAP_UTF8_APPROX : 0;
 
@@ -783,6 +783,7 @@ UTF8StringNormalize(
                nvalue.bv_len = 1;
        }
 
+       *normalized = nvalue;
        return LDAP_SUCCESS;
 }
 #else