]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix the use of OPENSSL_HTTP_PROXY / OPENSSL_HTTPS_PROXY
authorRichard Levitte <levitte@openssl.org>
Wed, 8 Jan 2025 09:15:02 +0000 (10:15 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 9 Jan 2025 11:03:52 +0000 (12:03 +0100)
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)

crypto/http/http_lib.c

index 780363b3259edc6fa75ced2a30e4812f37a2c14f..0046dc5303dc906145ceedba027a0dfdc5decd78 100644 (file)
@@ -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;