From: andrei2308 Date: Wed, 15 Apr 2026 15:23:58 +0000 (+0300) Subject: Add check for empty server host in http_lib.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9fdd8a28aef003ea6fa3c561ac821a5f9e965fb;p=thirdparty%2Fopenssl.git Add check for empty server host in http_lib.c Reviewed-by: Eugene Syromiatnikov Reviewed-by: Matt Caswell Reviewed-by: David von Oheimb MergeDate: Wed Apr 29 15:25:32 2026 (Merged from https://github.com/openssl/openssl/pull/30848) --- diff --git a/crypto/http/http_lib.c b/crypto/http/http_lib.c index 2821c0ec528..122dcfb1074 100644 --- a/crypto/http/http_lib.c +++ b/crypto/http/http_lib.c @@ -271,6 +271,9 @@ static int use_proxy(const char *no_proxy, const char *server) server = host; } + if (sl == 0) + return 1; + /* * using environment variable names, both lowercase and uppercase variants, * compatible with other HTTP client implementations like wget, curl and git