]> git.sur5r.net Git - openldap/commitdiff
Fix negated tests in IA5StringNormalize and numericStringNormalize.
authorMark Valence <mrv@openldap.org>
Wed, 28 Jun 2000 05:29:09 +0000 (05:29 +0000)
committerMark Valence <mrv@openldap.org>
Wed, 28 Jun 2000 05:29:09 +0000 (05:29 +0000)
servers/slapd/schema_init.c

index 9a5b621a3e56a6c47ff804798417e17297347e97..ec4da72eb2f6ec70b14341531b3f10dce75e7b2d 100644 (file)
@@ -534,7 +534,7 @@ IA5StringNormalize(
                p++;
        }
 
-       if( *p != '\0' ) {
+       if( *p == '\0' ) {
                ch_free( newval );
                return LDAP_INVALID_SYNTAX;
        }
@@ -1112,7 +1112,7 @@ numericStringNormalize(
                p++;
        }
 
-       if( *p != '\0' ) {
+       if( *p == '\0' ) {
                ch_free( newval );
                return LDAP_INVALID_SYNTAX;
        }