proxy: propagate proxy configuration errors
diff --git a/src/transports/http.c b/src/transports/http.c
index 7f9d350..c87e1a3 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);