From: Joe Orton Date: Mon, 10 Nov 2025 15:30:46 +0000 (+0000) Subject: * modules/ssl/ssl_engine_kernel.c (ssl_check_vhost_sni_policy): X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5f4b4bfcd4243aab20190f09dde3cbf375df624d;p=thirdparty%2Fapache%2Fhttpd.git * modules/ssl/ssl_engine_kernel.c (ssl_check_vhost_sni_policy): Fix handling of STRICT mode. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1929631 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index 1c11f7f759..8075f47e03 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/ssl_engine_kernel.c @@ -119,8 +119,8 @@ static int ssl_check_vhost_sni_policy(SSLSrvConfigRec *sc1, return 1; /* Policy: strict => fail for any vhost transition. */ - if (policy == MODSSL_SNIVH_STRICT && sc1 != sc2) - return 0; + if (policy == MODSSL_SNIVH_STRICT) + return sc1 == sc2; /* For authonly/secure policy, compare the hash. */ AP_DEBUG_ASSERT(sc1->sni_policy_hash);