]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Favour HUGE_STRING_LEN * 2 over 1024 * 16
authorRuediger Pluem <rpluem@apache.org>
Mon, 13 Mar 2023 09:25:46 +0000 (09:25 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 13 Mar 2023 09:25:46 +0000 (09:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908339 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_vars.c

index 6ba70fcecbb27d9e12ca1787b09adb020d339896..d8881734b953f4428610cc40d7ecb2aeda38cfb5 100644 (file)
@@ -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")) {