Skip to content

Commit

Permalink
Fix the use of OPENSSL_HTTP_PROXY / OPENSSL_HTTPS_PROXY
Browse files Browse the repository at this point in the history
Fixes openssl#26337

Reviewed-by: Dmitry Belyavskiy <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#26340)
  • Loading branch information
levitte authored and t8m committed Jan 9, 2025
1 parent 89e2c6f commit 6a2472f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/http/http_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ const char *OSSL_HTTP_adapt_proxy(const char *proxy, const char *no_proxy,
if (proxy == NULL)
proxy = ossl_safe_getenv(use_ssl ? "https_proxy" : "http_proxy");
if (proxy == NULL)
proxy = ossl_safe_getenv(use_ssl ? OPENSSL_HTTP_PROXY : OPENSSL_HTTPS_PROXY);
proxy = ossl_safe_getenv(use_ssl ? OPENSSL_HTTPS_PROXY : OPENSSL_HTTP_PROXY);

if (proxy == NULL || *proxy == '\0' || !use_proxy(no_proxy, server))
return NULL;
Expand Down

0 comments on commit 6a2472f

Please sign in to comment.