This is an automated email from the ASF dual-hosted git repository. remm pushed a commit to branch 11.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 021d1f833e38b683a44688f7b28f1f27e8e37c36 Author: remm <[email protected]> AuthorDate: Mon Mar 16 12:58:30 2026 +0100 Fix case sensitive handling of the protocol host name --- java/org/apache/tomcat/util/net/AbstractEndpoint.java | 3 ++- webapps/docs/changelog.xml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java b/java/org/apache/tomcat/util/net/AbstractEndpoint.java index 04eef9956d..274712b8d8 100644 --- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java +++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java @@ -743,7 +743,8 @@ public abstract class AbstractEndpoint<S, U> { public boolean checkSni(String sniHostName, String protocolHostName) { return (!strictSni || !isSSLEnabled() || (sniHostName != null && sniHostName.equalsIgnoreCase(protocolHostName)) - || getSSLHostConfig(sniHostName) == getSSLHostConfig(protocolHostName)); + || getSSLHostConfig(sniHostName) == getSSLHostConfig( + protocolHostName != null ? protocolHostName.toLowerCase(Locale.ENGLISH) : null)); } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index 3e6629dd33..40608b8029 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -223,6 +223,9 @@ Report handshake issues as <code>SSLException</code> in the FFM code, rather than <code>IllegalStateException</code>. (remm) </fix> + <fix> + Fix case sensitive handling of the protocol host name. (remm) + </fix> </changelog> </subsection> <subsection name="Jasper"> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
