diff --git a/crypto/http/http_lib.c b/crypto/http/http_lib.c index 7a0df7f2b27af..4d470e0fea879 100644 --- a/crypto/http/http_lib.c +++ b/crypto/http/http_lib.c @@ -252,7 +252,7 @@ static int use_proxy(const char *no_proxy, const char *server) { size_t sl; const char *found = NULL; - char host[300]; + char host[NI_MAXHOST]; if (!ossl_assert(server != NULL)) return 0;