]> git.sur5r.net Git - openldap/commitdiff
parsing bug (does not affect RE22)
authorPierangelo Masarati <ando@openldap.org>
Sat, 24 Apr 2004 17:47:24 +0000 (17:47 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 24 Apr 2004 17:47:24 +0000 (17:47 +0000)
servers/slapd/saslauthz.c

index d951a987a7dd3396962b78c4ec2b08079a9f6428..402f06fb477a8643dbae03b7c721246ffde75358 100644 (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