summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2025-01-08 10:15:02 +0100
committerTomas Mraz <tomas@openssl.org>2025-01-09 12:03:52 +0100
commit6a2472fb3e958c029989286d9272bd2b23738f85 (patch)
tree7d5bcce8d306d386c81ea87a26c0fc59b2f91f11
parentFix encryption level ordering (diff)
downloadopenssl-6a2472fb3e958c029989286d9272bd2b23738f85.tar.xz
openssl-6a2472fb3e958c029989286d9272bd2b23738f85.zip
Fix the use of OPENSSL_HTTP_PROXY / OPENSSL_HTTPS_PROXY
Fixes #26337 Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/26340)
-rw-r--r--crypto/http/http_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/http/http_lib.c b/crypto/http/http_lib.c
index 780363b325..0046dc5303 100644
--- a/crypto/http/http_lib.c
+++ b/crypto/http/http_lib.c
@@ -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;