aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_check_for_rule_updates.php
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2013-11-27 20:17:04 -0500
committerbmeeks8 <bmeeks8@bellsouth.net>2013-11-27 20:17:04 -0500
commitdb7a6af3701beca6e4e23c7679e293f80e0441db (patch)
tree9f2978db10d57940f75a0ce1604bf05814283f6e /config/snort/snort_check_for_rule_updates.php
parentd1b40c0af9436a8edfcfbc9825aaaf9b94dc2fdc (diff)
downloadpfsense-packages-db7a6af3701beca6e4e23c7679e293f80e0441db.tar.gz
pfsense-packages-db7a6af3701beca6e4e23c7679e293f80e0441db.tar.bz2
pfsense-packages-db7a6af3701beca6e4e23c7679e293f80e0441db.zip
Add logic to prevent writing conf settings with no interfaces defined.
Diffstat (limited to 'config/snort/snort_check_for_rule_updates.php')
-rwxr-xr-xconfig/snort/snort_check_for_rule_updates.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php
index 5f687636..28539f1f 100755
--- a/config/snort/snort_check_for_rule_updates.php
+++ b/config/snort/snort_check_for_rule_updates.php
@@ -695,7 +695,8 @@ if ($snortdownload == 'on' || $emergingthreats == 'on' || $snortcommunityrules =
}
/* Start the rules rebuild proccess for each configured interface */
- if (is_array($config['installedpackages']['snortglobal']['rule'])) {
+ if (is_array($config['installedpackages']['snortglobal']['rule']) &&
+ !empty($config['installedpackages']['snortglobal']['rule'])) {
/* Set the flag to force rule rebuilds since we downloaded new rules, */
/* except when in post-install mode. Post-install does its own rebuild. */