Skip to content

Commit dcc6fd2

Browse files
Ensure no exceptions leak from the clinit of WafInitialization
1 parent 5ae2b2f commit dcc6fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dd-java-agent/appsec/src/main/java/com/datadog/appsec/ddwaf/WafInitialization.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ private static boolean initWAF() {
1515
try {
1616
boolean simpleLoad = System.getProperty("POWERWAF_SIMPLE_LOAD") != null;
1717
Waf.initialize(simpleLoad);
18-
} catch (Exception e) {
18+
} catch (Throwable e) {
1919
Logger logger = LoggerFactory.getLogger(WafInitialization.class);
2020
logger.warn("Error initializing WAF library", e);
2121
StandardizedLogging.libddwafCannotBeLoaded(logger, getLibc());

0 commit comments

Comments
 (0)