From: Stefan Eissing Date: Tue, 30 Nov 2021 15:56:07 +0000 (+0000) Subject: * mod_http2: handle gracefully when SSL_PROTOCOL variable is not available. X-Git-Tag: 2.5.0-alpha2-ci-test-only~682 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=542d98bac5bd1ab90ff73dfedffce6aa576c4b83;p=thirdparty%2Fapache%2Fhttpd.git * 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 --- 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");