This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 3b1ded20da Consistent synchronisation - reported by Coverity scan
3b1ded20da is described below
commit 3b1ded20dab9b2cd59d7d540afcb9b4c2d17a753
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 9ed5ce6e4b..1cc45173b3 100644
--- a/java/org/apache/catalina/core/StandardContext.java
+++ b/java/org/apache/catalina/core/StandardContext.java
@@ -4290,7 +4290,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]