]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* mod_http2: handle gracefully when SSL_PROTOCOL variable is not available.
authorStefan Eissing <icing@apache.org>
Tue, 30 Nov 2021 15:56:07 +0000 (15:56 +0000)
committerStefan Eissing <icing@apache.org>
Tue, 30 Nov 2021 15:56:07 +0000 (15:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1895427 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_protocol.c

index 7bb3ea03ba9fa719a9bed6396697ad803220c5d2..874753e4983e1aba8326136574e4d98b6b11222f 100644 (file)
@@ -460,7 +460,7 @@ int h2_protocol_is_acceptable_c1(conn_rec *c, request_rec *r, int require_all)
             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");