]> git.sur5r.net Git - openldap/commitdiff
Fix reversed assert logic
authorKurt Zeilenga <kurt@openldap.org>
Wed, 13 Sep 2000 01:23:39 +0000 (01:23 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 13 Sep 2000 01:23:39 +0000 (01:23 +0000)
servers/slapd/schema_init.c

index c9614253945f97ba37c91c78bbb50c754b8b9828..ba74c3716f5d25a91df4296a4dfa5c1306f8050e 100644 (file)
@@ -602,7 +602,7 @@ UTF8StringNormalize(
 
        assert( *newval->bv_val );
        assert( newval->bv_val < p );
-       assert( p >= q );
+       assert( q <= p );
 
        /* cannot start with a space */
        assert( !ldap_utf8_isspace(newval->bv_val) );
@@ -1950,7 +1950,7 @@ IA5StringNormalize(
 
        assert( *newval->bv_val );
        assert( newval->bv_val < p );
-       assert( p <= q );
+       assert( q <= p );
 
        /* cannot start with a space */
        assert( !ASCII_SPACE(*newval->bv_val) );