From 542d98bac5bd1ab90ff73dfedffce6aa576c4b83 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 30 Nov 2021 15:56:07 +0000 Subject: [PATCH] * mod_http2: handle gracefully when SSL_PROTOCOL variable is not available. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1895427 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/http2/h2_protocol.c b/modules/http2/h2_protocol.c index 7bb3ea03ba9..874753e4983 100644 --- a/modules/http2/h2_protocol.c +++ b/modules/http2/h2_protocol.c @@ -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"); -- 2.47.3