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

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 664dc68b57d5b148854b0313e767f11a1fc74819
Author: Mark Thomas <[email protected]>
AuthorDate: Sat May 16 07:38:47 2026 +0100

    Unregister the old host, not the new one.
---
 java/org/apache/tomcat/util/net/AbstractEndpoint.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/tomcat/util/net/AbstractEndpoint.java 
b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
index 3bb1fb726d..8da0517545 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -465,7 +465,7 @@ public abstract class AbstractEndpoint<S, U> {
         if (replace) {
             SSLHostConfig previous = sslHostConfigs.put(key, sslHostConfig);
             if (previous != null) {
-                unregisterJmx(sslHostConfig);
+                unregisterJmx(previous);
             }
             registerJmx(sslHostConfig);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to