aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-22 19:33:28 +0000
committerErmal <eri@pfsense.org>2012-07-22 19:33:28 +0000
commit642cf967064fe8b7f29b393cd637d717eb661b41 (patch)
tree2d4147708dc45b37b9ced28b82efe7dc2474cb3e /config/snort
parent01c805917edcc11e4fc3bf7d46f0bf655f312875 (diff)
downloadpfsense-packages-642cf967064fe8b7f29b393cd637d717eb661b41.tar.gz
pfsense-packages-642cf967064fe8b7f29b393cd637d717eb661b41.tar.bz2
pfsense-packages-642cf967064fe8b7f29b393cd637d717eb661b41.zip
Fix copy pasto errors
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort_rulesets.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_rulesets.php b/config/snort/snort_rulesets.php
index db887a97..d9f35f69 100644
--- a/config/snort/snort_rulesets.php
+++ b/config/snort/snort_rulesets.php
@@ -55,10 +55,10 @@ function snort_remove_rules($files, $snortdir, $snort_uuid, $if_real) {
return;
conf_mount_rw();
- foreach ($tormv as $file) {
+ foreach ($files as $file) {
@unlink("{$snortdir}/snort_{$snort_uuid}_{$if_real}/rules/{$file}");
if (substr($file, -9) == ".so.rules") {
- $slib = substr($enabled_item, 6, -6);
+ $slib = substr($file, 6, -6);
@unlink("{$snortdir}/snort_{$snort_uuid}_{$if_real}/dynamicrules/{$slib}");
}
}