This is an automated email from the ASF dual-hosted git repository.
markt 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 99decc6841 Consistent synchronisation - reported by Coverity scan
99decc6841 is described below
commit 99decc684174f095adde96311a3a46a0aa78af88
Author: Mark Thomas <[email protected]>
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 6d76f8987c..95dd7dd90b 100644
--- a/java/org/apache/catalina/core/StandardContext.java
+++ b/java/org/apache/catalina/core/StandardContext.java
@@ -4319,7 +4319,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: [email protected]
For additional commands, e-mail: [email protected]