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

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


The following commit(s) were added to refs/heads/9.0.x by this push:
     new e25e7fd2ba Consistent synchronisation - reported by Coverity scan
e25e7fd2ba is described below

commit e25e7fd2bab2cd2373400c06e5959c657d05a7ab
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Mon Aug 14 16:53:20 2023 +0100

    Consistent synchronisation - reported by Coverity scan
---
 java/org/apache/catalina/core/StandardContext.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/core/StandardContext.java 
b/java/org/apache/catalina/core/StandardContext.java
index d621fe7d45..f141c0b5da 100644
--- a/java/org/apache/catalina/core/StandardContext.java
+++ b/java/org/apache/catalina/core/StandardContext.java
@@ -4359,7 +4359,9 @@ public class StandardContext extends ContainerBase 
implements Context, Notificat
      * @return the filter config object
      */
     public FilterConfig findFilterConfig(String name) {
-        return filterConfigs.get(name);
+        synchronized (filterDefs) {
+            return filterConfigs.get(name);
+        }
     }
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to