@@ -329,12 +329,6 @@ public void onDataAvailable(
329329 DataBundle newData ,
330330 GatewayContext gwCtx ) {
331331 Waf .ResultWithData resultWithData ;
332- CtxAndAddresses ctxAndAddr = ctxAndAddresses .get ();
333- if (ctxAndAddr == null ) {
334- log .debug ("Skipped; the WAF is not configured" );
335- return ;
336- }
337-
338332 if (reqCtx .isWafContextClosed ()) {
339333 log .debug ("Skipped; the WAF context is closed" );
340334 if (gwCtx .isRasp ) {
@@ -562,9 +556,7 @@ private Waf.ResultWithData doRunWaf(
562556 private Waf .ResultWithData runWafContext (
563557 WafContext wafContext , WafMetrics metrics , DataBundle newData ) throws AbstractWafException {
564558 return wafContext .run (
565- new DataBundleMapWrapper (ctxAndAddresses .get ().addressesOfInterest , newData ),
566- LIMITS ,
567- metrics );
559+ new DataBundleMapWrapper (getUsedAddresses (wafHandle ), newData ), LIMITS , metrics );
568560 }
569561 }
570562
@@ -581,9 +573,7 @@ private static void incrementErrorCodeMetric(
581573 private Waf .ResultWithData runWafTransient (
582574 WafContext wafContext , WafMetrics metrics , DataBundle newData ) throws AbstractWafException {
583575 return wafContext .runEphemeral (
584- new DataBundleMapWrapper (ctxAndAddresses .get ().addressesOfInterest , newData ),
585- LIMITS ,
586- metrics );
576+ new DataBundleMapWrapper (getUsedAddresses (wafHandle ), newData ), LIMITS , metrics );
587577 }
588578
589579 private Collection <AppSecEvent > buildEvents (Waf .ResultWithData actionWithData ) {
0 commit comments