This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new c28932c763 Unregister the old host, not the new one.
c28932c763 is described below
commit c28932c7632512df21667d97fb19574817b9351f
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 af6ba320ea..a8b243d909 100644
--- a/java/org/apache/tomcat/util/net/AbstractEndpoint.java
+++ b/java/org/apache/tomcat/util/net/AbstractEndpoint.java
@@ -393,7 +393,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]