summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/transports/http.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transports/http.c b/src/transports/http.c
index 7f9d35012..c87e1a35d 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -625,7 +625,8 @@ static int http_connect(http_subtransport *t)
GITERR_CHECK_VERSION(t->io, GIT_STREAM_VERSION, "git_stream");
- apply_proxy_config(t);
+ if ((error = apply_proxy_config(t)) < 0)
+ return error;
error = git_stream_connect(t->io);