]> git.proxmox.com Git - libgit2.git/commitdiff
transport_git: add missed error handling
authorKirill A. Shutemov <kirill@shutemov.name>
Wed, 24 Aug 2011 17:11:15 +0000 (20:11 +0300)
committerKirill A. Shutemov <kirill@shutemov.name>
Wed, 24 Aug 2011 17:11:15 +0000 (20:11 +0300)
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
src/transport_git.c

index 88ad7a9015f092cc6499da858f8f86744732565c..1774c0ada4548eb9c3c4228df20bce4c5763c6df 100644 (file)
@@ -151,6 +151,8 @@ static int do_connect(transport_git *t, const char *url)
                url += STRLEN(prefix);
 
        error = extract_host_and_port(&host, &port, url);
+       if (error < GIT_SUCCESS)
+               return error;
        s = gitno_connect(host, port);
        connected = 1;
        error = send_request(s, NULL, url);