From: Mark Valence Date: Wed, 28 Jun 2000 05:29:09 +0000 (+0000) Subject: Fix negated tests in IA5StringNormalize and numericStringNormalize. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2515 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=16f2a29c23419e192f5c299cc73c0d01278e42ff;p=openldap Fix negated tests in IA5StringNormalize and numericStringNormalize. --- 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; }