Permalink
Browse files

Fix preproc auto-rule disable to skip disabled rules.

  • Loading branch information...
1 parent 2eca7b9 commit 6e92c34f5c39d7af5fcd90b0e274ddf71a0083ce @bmeeks8 bmeeks8 committed Mar 23, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 config/snort/snort.inc
View
@@ -1855,7 +1855,8 @@ function snort_filter_preproc_rules($snortcfg, &$active_rules) {
***************************************************/
foreach ($active_rules as $k1 => $rulem) {
foreach ($rulem as $k2 => $v) {
- if ($v['disabled'] == 0)
+ /* If rule is already disabled, skip it. */
+ if ($v['disabled'] == 1)
continue;
foreach ($rule_opts_preprocs as $opt => $preproc) {
$pcre = "/\s*\b" . $opt . "/i";

0 comments on commit 6e92c34

Please sign in to comment.