diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-08-24 20:11:15 +0300 |
---|---|---|
committer | Kirill A. Shutemov <kirill@shutemov.name> | 2011-08-24 20:11:15 +0300 |
commit | c75a890b603179d5ea1d646d63019688f995f87c (patch) | |
tree | 55945d9e956aca61ed06c505d04c9c72e0108b30 /src | |
parent | d7f0ababe1882c8351093231d986de26f9df670d (diff) | |
download | libgit2-c75a890b603179d5ea1d646d63019688f995f87c.tar.gz |
transport_git: add missed error handling
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Diffstat (limited to 'src')
-rw-r--r-- | src/transport_git.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/transport_git.c b/src/transport_git.c index 88ad7a901..1774c0ada 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); |