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