diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 9a5b621a3e..ec4da72eb2 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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; }