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 2023/08/14 15:54:02 UTC
[tomcat] 02/02: Consistent synchronisation - reported by Coverity scan
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 7061d6ffdd91ebc31fcdae58cfe878f392e0c300
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 de33471e5f..d1bcbead6c 100644
--- a/java/org/apache/catalina/core/StandardContext.java
+++ b/java/org/apache/catalina/core/StandardContext.java
@@ -4338,7 +4338,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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org