diff options
author | nulltoken <emeric.fermas@gmail.com> | 2014-08-27 10:28:46 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2014-08-27 17:37:29 +0200 |
commit | f0c53d21a43a098da2bf96a955ee22feb9ab8a5a (patch) | |
tree | e4493b74f0cf8a19c4efb17eebcec0d89c01d0b8 /src | |
parent | c13b68442fa92c19fb8e92f0c1da4704fe14174f (diff) | |
download | libgit2-f0c53d21a43a098da2bf96a955ee22feb9ab8a5a.tar.gz |
winhttp: Prevent swallowing of url parsing error
Diffstat (limited to 'src')
-rw-r--r-- | src/transports/winhttp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c index 1e46dfaee..836c488cc 100644 --- a/src/transports/winhttp.c +++ b/src/transports/winhttp.c @@ -1116,9 +1116,9 @@ static int winhttp_action( int ret = -1; if (!t->connection) - if (gitno_connection_data_from_url(&t->connection_data, url, NULL) < 0 || - winhttp_connect(t, url) < 0) - return -1; + if ((ret = gitno_connection_data_from_url(&t->connection_data, url, NULL)) < 0 || + (ret = winhttp_connect(t, url)) < 0) + return ret; if (winhttp_stream_alloc(t, &s) < 0) return -1; |