From 6c3e915ceb0f8c2065db378d2d4bfcc76aa1fa51 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 13 Sep 2000 01:23:39 +0000 Subject: [PATCH] Fix reversed assert logic --- servers/slapd/schema_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ); -- 2.39.5