From: Kurt Zeilenga Date: Wed, 30 May 2001 06:06:14 +0000 (+0000) Subject: Allow empty numericString matching X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1370 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e4653bde6868d1f254797765503e5f413c0eb6c1;p=openldap Allow empty numericString matching --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 47121340e4..8b215bab94 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -440,6 +440,7 @@ bitStringValidate( if( in->bv_len < 3 ) { return LDAP_INVALID_SYNTAX; } + if( in->bv_val[0] != 'B' || in->bv_val[1] != '\'' || in->bv_val[in->bv_len-1] != '\'' ) @@ -3644,8 +3645,6 @@ numericStringValidate( { ber_len_t i; - /* disallow empty numeric strings */ - for(i=0; i < in->bv_len; i++) { if( !SLAP_NUMERIC(in->bv_val[i]) ) { return LDAP_INVALID_SYNTAX; @@ -3680,7 +3679,7 @@ numericStringNormalize( } } - assert( newval->bv_val < p ); + assert( newval->bv_val =< p ); assert( q <= p ); /* null terminate */