aboutsummaryrefslogtreecommitdiffstats
path: root/config/spamd/spamd_db.php
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-11 14:55:46 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-11 14:55:46 +0200
commit3f76794c990bf21819c52587f83721021c3dbf25 (patch)
tree8bdce988bbb291c10b93933f28c0f3e8af5826a8 /config/spamd/spamd_db.php
parent9827cc604ced05548643619f4fce8438c82cbdbf (diff)
downloadpfsense-packages-3f76794c990bf21819c52587f83721021c3dbf25.tar.gz
pfsense-packages-3f76794c990bf21819c52587f83721021c3dbf25.tar.bz2
pfsense-packages-3f76794c990bf21819c52587f83721021c3dbf25.zip
remove useless config_(un)lock calls round two
Diffstat (limited to 'config/spamd/spamd_db.php')
-rw-r--r--config/spamd/spamd_db.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/config/spamd/spamd_db.php b/config/spamd/spamd_db.php
index e1d004f7..83601805 100644
--- a/config/spamd/spamd_db.php
+++ b/config/spamd/spamd_db.php
@@ -145,7 +145,6 @@ if($_GET['whitelist'] <> "") {
}
function delete_from_blacklist($srcip) {
- config_lock();
$blacklist = explode("\n", file_get_contents("/var/db/blacklist.txt"));
$fd = fopen("/var/db/blacklist.txt", "w");
foreach($blacklist as $bl) {
@@ -156,11 +155,9 @@ function delete_from_blacklist($srcip) {
fclose($fd);
mwexec("/sbin/pfctl -q -t spamd -T delete {$srcip}");
mwexec("/sbin/pfctl -q -t blacklist -T replace -f /var/db/blacklist.txt");
- config_unlock();
}
function delete_from_whitelist($srcip) {
- config_lock();
$whitelist = explode("\n", file_get_contents("/var/db/whitelist.txt"));
$fd = fopen("/var/db/whitelist.txt", "w");
foreach($whitelist as $wl) {
@@ -171,7 +168,6 @@ function delete_from_whitelist($srcip) {
fclose($fd);
mwexec("/sbin/pfctl -q -t spamd -T delete $srcip");
mwexec("/sbin/pfctl -q -t whitelist -T replace -f /var/db/whitelist.txt");
- config_unlock();
}
$pgtitle = "SpamD: Database";