diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-10-13 19:16:54 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-28 15:10:02 +0000 |
| commit | ed72465e5348ac6abf4285b90a6688052ed5ff07 (patch) | |
| tree | 1ea12defa7edd2475aa627e062fbda77fdf0864c /src | |
| parent | c97d302deccfbeba057e5543d64afaf9351c9752 (diff) | |
| download | libgit2-ed72465e5348ac6abf4285b90a6688052ed5ff07.tar.gz | |
proxy: propagate proxy configuration errors
Diffstat (limited to 'src')
| -rw-r--r-- | src/transports/http.c | 3 |
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); |
