In UTF8StringValidate, 1-byte chars are already validated

This commit is contained in:
Howard Chu 2002-01-18 04:49:55 +00:00
parent 89abf8bbb0
commit 6bfe37bdf5

View File

@ -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;