aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2013-03-22 23:20:47 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2013-03-22 23:20:47 -0400
commit6e92c34f5c39d7af5fcd90b0e274ddf71a0083ce (patch)
tree83ef97a7b317a973af87b40a3220fef94f42fe8a /config
parent2eca7b9e6f23b3930b449855c6f815baefbbc3cf (diff)
downloadpfsense-packages-6e92c34f5c39d7af5fcd90b0e274ddf71a0083ce.tar.gz
pfsense-packages-6e92c34f5c39d7af5fcd90b0e274ddf71a0083ce.tar.bz2
pfsense-packages-6e92c34f5c39d7af5fcd90b0e274ddf71a0083ce.zip
Fix preproc auto-rule disable to skip disabled rules.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/snort/snort.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 6af50ffe..27d0b7e5 100755
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -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";