Skip to content

Commit ad00857

Browse files
committed
Fix SecDefaultAction inheritance for non-disruptive rules
1 parent 0fb4aff commit ad00857

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/rule_with_actions.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,11 @@ void RuleWithActions::executeAction(Transaction *trans,
306306
return;
307307
}
308308

309-
if (defaultContext && !containsBlock) {
309+
if (defaultContext && !containsBlock
310+
&& m_disruptiveAction != nullptr
311+
&& *m_disruptiveAction->m_name.get() != "block") {
310312
ms_dbg_a(trans, 4, "Ignoring action: " + *a->m_name.get() + \
311-
" (rule does not cotains block)");
313+
" (rule has explicit disruptive action)");
312314
return;
313315
}
314316

0 commit comments

Comments
 (0)