Commit ed72465e5348ac6abf4285b90a6688052ed5ff07

Edward Thomson 2018-10-13T19:16:54

proxy: propagate proxy configuration errors

1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);