mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
quick hack for ITS#3118; may need work
This commit is contained in:
parent
35643b0425
commit
5e5e0cd98a
1 changed files with 6 additions and 6 deletions
|
|
@ -2791,18 +2791,18 @@ firstComponentNormalize(
|
|||
{
|
||||
int rc;
|
||||
struct berval oid;
|
||||
ber_len_t len;
|
||||
ber_len_t len = 0;
|
||||
|
||||
if( val->bv_len < 3 ) return LDAP_INVALID_SYNTAX;
|
||||
if( val->bv_len == 0 ) return LDAP_INVALID_SYNTAX;
|
||||
|
||||
if( val->bv_val[0] != '(' /*')'*/ &&
|
||||
val->bv_val[0] != '{' /*'}'*/ )
|
||||
if( val->bv_val[0] == '(' /*')'*/ ||
|
||||
val->bv_val[0] == '{' /*'}'*/ )
|
||||
{
|
||||
return LDAP_INVALID_SYNTAX;
|
||||
len = 1;
|
||||
}
|
||||
|
||||
/* trim leading white space */
|
||||
for( len=1;
|
||||
for( ;
|
||||
len < val->bv_len && ASCII_SPACE(val->bv_val[len]);
|
||||
len++ )
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue