parsing bug (does not affect RE22)

This commit is contained in:
Pierangelo Masarati 2004-04-24 17:47:24 +00:00
parent 3c1c61c5ef
commit 0cd5b9f766

View file

@ -237,12 +237,12 @@ static int slap_parseURI( Operation *op, struct berval *uri,
} else {
return LDAP_PROTOCOL_ERROR;
}
}
if ( bv.bv_val[ 0 ] != ':' ) {
return LDAP_PROTOCOL_ERROR;
} else {
if ( bv.bv_val[ 0 ] != ':' )
return LDAP_PROTOCOL_ERROR;
bv.bv_val++;
}
bv.bv_val++;
bv.bv_val += strspn( bv.bv_val, " " );
/* jump here in case no type specification was present