]> git.sur5r.net Git - openldap/commitdiff
Plug memleak in slap_parseURI
authorHoward Chu <hyc@openldap.org>
Sat, 20 Sep 2003 05:55:48 +0000 (05:55 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 20 Sep 2003 05:55:48 +0000 (05:55 +0000)
servers/slapd/saslauthz.c

index 258301e38d39b8caf3555e18d22f3a0e129b5e0f..b536580930fa7020c354d33962dec96649f4c968 100644 (file)
@@ -115,7 +115,8 @@ is_dn:      bv.bv_len = uri->bv_len - (bv.bv_val - uri->bv_val);
        {
                /* host part must be empty */
                /* attrs and extensions parts must be empty */
-               return LDAP_PROTOCOL_ERROR;
+               rc =  LDAP_PROTOCOL_ERROR;
+               goto done;
        }
 
        /* Grab the scope */