Skip to content

Commit 5f4b4bf

Browse files
committed
* 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
1 parent 824174a commit 5f4b4bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/ssl/ssl_engine_kernel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ static int ssl_check_vhost_sni_policy(SSLSrvConfigRec *sc1,
119119
return 1;
120120

121121
/* Policy: strict => fail for any vhost transition. */
122-
if (policy == MODSSL_SNIVH_STRICT && sc1 != sc2)
123-
return 0;
122+
if (policy == MODSSL_SNIVH_STRICT)
123+
return sc1 == sc2;
124124

125125
/* For authonly/secure policy, compare the hash. */
126126
AP_DEBUG_ASSERT(sc1->sni_policy_hash);

0 commit comments

Comments
 (0)