From 0cd5b9f7667301a03759f29c34d66691e118be5b Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 24 Apr 2004 17:47:24 +0000 Subject: [PATCH] parsing bug (does not affect RE22) --- servers/slapd/saslauthz.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5