aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r--config/snort/snort.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 40459984..10e2f1f2 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -73,6 +73,8 @@ $pfsense_theme_is = $config['theme'];
function find_whitelist_key($find_wlist_number) {
global $config, $g;
+ if (!is_array($config['installedpackages']['snortglobal']['whitelist']))
+ $config['installedpackages']['snortglobal']['whitelist'] = array();
if (!is_array($config['installedpackages']['snortglobal']['whitelist']['item']))
return 0; /* XXX */
@@ -86,6 +88,8 @@ function find_whitelist_key($find_wlist_number) {
function find_suppress_key($find_slist_number) {
global $config, $g;
+ if (!is_array($config['installedpackages']['snortglobal']['suppress']))
+ $config['installedpackages']['snortglobal']['suppress'] = array();
if (!is_array($config['installedpackages']['snortglobal']['suppress']['item']))
return 0; /* XXX */