From: Kurt Zeilenga Date: Wed, 13 Sep 2000 01:23:39 +0000 (+0000) Subject: Fix reversed assert logic X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2032 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6c3e915ceb0f8c2065db378d2d4bfcc76aa1fa51;p=openldap Fix reversed assert logic --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index c961425394..ba74c3716f 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -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) );