From: Pierangelo Masarati Date: Sat, 24 Apr 2004 17:47:24 +0000 (+0000) Subject: parsing bug (does not affect RE22) X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~441 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0cd5b9f7667301a03759f29c34d66691e118be5b;p=openldap parsing bug (does not affect RE22) --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index d951a987a7..402f06fb47 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -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