transport_git: add missed error handling Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
diff --git a/src/transport_git.c b/src/transport_git.c
index 88ad7a9..1774c0a 100644
--- a/src/transport_git.c
+++ b/src/transport_git.c
@@ -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);