From: Ruediger Pluem Date: Mon, 13 Mar 2023 09:25:46 +0000 (+0000) Subject: * Favour HUGE_STRING_LEN * 2 over 1024 * 16 X-Git-Tag: 2.5.0-alpha2-ci-test-only~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45e6c135b4372c2eedb72d84ded0019b0b1403f6;p=thirdparty%2Fapache%2Fhttpd.git * Favour HUGE_STRING_LEN * 2 over 1024 * 16 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908339 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_vars.c b/modules/ssl/ssl_engine_vars.c index 6ba70fcecbb..d8881734b95 100644 --- a/modules/ssl/ssl_engine_vars.c +++ b/modules/ssl/ssl_engine_vars.c @@ -507,9 +507,9 @@ static const char *ssl_var_lookup_ssl(apr_pool_t *p, const SSLConnRec *sslconn, result = ssl_var_lookup_ssl_compress_meth(ssl); } else if (ssl != NULL && strcEQ(var, "SHARED_CIPHERS")) { - char buf[ 1024 * 16 ]; - if (SSL_get_shared_ciphers(ssl,buf,sizeof(buf))) - result = apr_pstrdup(p,buf); + char buf[HUGE_STRING_LEN * 2]; + if (SSL_get_shared_ciphers(ssl, buf, sizeof(buf))) + result = apr_pstrdup(p, buf); } #ifdef HAVE_TLSEXT else if (ssl != NULL && strcEQ(var, "TLS_SNI")) {