diff options
author | Ermal <eri@pfsense.org> | 2011-08-02 20:55:45 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-02 20:55:45 +0000 |
commit | 08d9ecf5afcb5c462959f1eb4d3904500c220c1d (patch) | |
tree | 9e8fb49db5a5326df2f202695ed5be5664117116 /config/snort | |
parent | 27c2eff3456db3a877d66a8642f8cf2098989e0b (diff) | |
download | pfsense-packages-08d9ecf5afcb5c462959f1eb4d3904500c220c1d.tar.gz pfsense-packages-08d9ecf5afcb5c462959f1eb4d3904500c220c1d.tar.bz2 pfsense-packages-08d9ecf5afcb5c462959f1eb4d3904500c220c1d.zip |
More corrections
Diffstat (limited to 'config/snort')
-rw-r--r-- | config/snort/snort.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 10e2f1f2..cf04d647 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -1168,7 +1168,6 @@ function sync_snort_package_config() /* Start of main config files */ /* create threshold file */ -/* TODO: other func should mirror this code */ function create_snort_suppress($id, $if_real) { global $config, $g; @@ -1176,6 +1175,9 @@ function create_snort_suppress($id, $if_real) { if (!is_dir('/usr/local/etc/snort/suppress')) exec('/bin/mkdir -p /usr/local/etc/snort/suppress'); + if (!is_array($config['installedpackages']['snortglobal']['rule'])) + return; + if ($config['installedpackages']['snortglobal']['rule'][$id]['suppresslistname'] != 'default') { if (preg_match('/([0-9]+)$/', $config['installedpackages']['snortglobal']['rule'][$id]['suppresslistname'], $slist_num_wrt)) { |