Skip to content

Commit ed72465

Browse files
committed
proxy: propagate proxy configuration errors
1 parent c97d302 commit ed72465

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/transports/http.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,8 @@ static int http_connect(http_subtransport *t)
625625

626626
GITERR_CHECK_VERSION(t->io, GIT_STREAM_VERSION, "git_stream");
627627

628-
apply_proxy_config(t);
628+
if ((error = apply_proxy_config(t)) < 0)
629+
return error;
629630

630631
error = git_stream_connect(t->io);
631632

0 commit comments

Comments
 (0)