1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

*) mod_ssl: Fix mod_authz provider for "require ssl" directive to check correctly

on HTTP/2 connections. Fixes PR 62654. [Stefan Eissing]



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1846111 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Eissing
2018-11-08 10:09:21 +00:00
parent 505cf744a8
commit fe55941af9
2 changed files with 4 additions and 4 deletions

View File

@@ -1605,10 +1605,7 @@ static authz_status ssl_authz_require_ssl_check(request_rec *r,
const char *require_line,
const void *parsed)
{
SSLConnRec *sslconn = myConnConfig(r->connection);
SSL *ssl = sslconn ? sslconn->ssl : NULL;
if (ssl)
if (modssl_request_is_tls(r, NULL))
return AUTHZ_GRANTED;
else
return AUTHZ_DENIED;