Commit 5e5e0cd9 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

quick hack for ITS#3118; may need work

parent 35643b04
......@@ -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++ )
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment