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

coheigea pushed a commit to branch 3.3.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.3.x-fixes by this push:
     new 4bf905d  Make sure to close the SAML cache
4bf905d is described below

commit 4bf905d37828f27718495d9539a1e838ddd8b6f0
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Wed Apr 8 14:37:14 2020 +0100

    Make sure to close the SAML cache
    
    (cherry picked from commit 9425968cd6747a03737bdf15b449b4b6b07ee7df)
---
 .../java/org/apache/cxf/ws/security/cache/CacheCleanupListener.java   | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/cache/CacheCleanupListener.java
 
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/cache/CacheCleanupListener.java
index 4682904..c565433 100644
--- 
a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/cache/CacheCleanupListener.java
+++ 
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/cache/CacheCleanupListener.java
@@ -65,6 +65,10 @@ public class CacheCleanupListener implements 
ServerLifeCycleListener, ClientLife
         if (rc != null) {
             close(rc);
         }
+        rc = 
(ReplayCache)info.getProperty(SecurityConstants.SAML_ONE_TIME_USE_CACHE_INSTANCE);
+        if (rc != null) {
+            close(rc);
+        }
     }
 
     private void close(Closeable ts) {

Reply via email to