You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/05/16 06:39:12 UTC

(tomcat) 02/02: Unregister the old host, not the new one.

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 <ma...@apache.org>
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org