From: Howard Chu Date: Fri, 18 Jan 2002 04:49:55 +0000 (+0000) Subject: In UTF8StringValidate, 1-byte chars are already validated X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~82 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6bfe37bdf52eb4f4decca3eec4b86d2eadd2be14;p=openldap In UTF8StringValidate, 1-byte chars are already validated --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index a6aa3ceca8..a6e68b5316 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -500,9 +500,7 @@ UTF8StringValidate( return LDAP_INVALID_SYNTAX; } case 1: - if( u[0] >= 0xFE ) { - return LDAP_INVALID_SYNTAX; - } + /* CHARLEN already validated it */ break; default: return LDAP_INVALID_SYNTAX;