This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 95f7778248 Fix case sensitive handling of the protocol host name
95f7778248 is described below

commit 95f7778248cac46d03e6af04de9c72a598be3a53
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 3cc3c06b5a..0e60225624 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -548,7 +548,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 22be546044..d9ef6b0969 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -225,6 +225,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]

Reply via email to