You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2021/11/30 15:56:07 UTC

svn commit: r1895427 - /httpd/httpd/trunk/modules/http2/h2_protocol.c

Author: icing
Date: Tue Nov 30 15:56:07 2021
New Revision: 1895427

URL: http://svn.apache.org/viewvc?rev=1895427&view=rev
Log:
  * mod_http2: handle gracefully when SSL_PROTOCOL variable is not available.


Modified:
    httpd/httpd/trunk/modules/http2/h2_protocol.c

Modified: httpd/httpd/trunk/modules/http2/h2_protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http2/h2_protocol.c?rev=1895427&r1=1895426&r2=1895427&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http2/h2_protocol.c (original)
+++ httpd/httpd/trunk/modules/http2/h2_protocol.c Tue Nov 30 15:56:07 2021
@@ -460,7 +460,7 @@ int h2_protocol_is_acceptable_c1(conn_re
             return 0;
         }
 
-        if (!strcmp("TLSv1.2", val)) {
+        if (val && !strcmp("TLSv1.2", val)) {
             /* Check TLS cipher blacklist, defined pre-TLSv1.3, so only
              * checking for 1.2 */
             val = ap_ssl_var_lookup(pool, s, c, NULL, "SSL_CIPHER");