transport_git: add missed error handling

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
This commit is contained in:
Kirill A. Shutemov 2011-08-24 20:11:15 +03:00
parent d7f0ababe1
commit c75a890b60

View File

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