diff options
author | doktornotor <notordoktor@gmail.com> | 2015-08-11 14:55:46 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-08-11 14:55:46 +0200 |
commit | 3f76794c990bf21819c52587f83721021c3dbf25 (patch) | |
tree | 8bdce988bbb291c10b93933f28c0f3e8af5826a8 /config/spamd | |
parent | 9827cc604ced05548643619f4fce8438c82cbdbf (diff) | |
download | pfsense-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')
-rw-r--r-- | config/spamd/spamd_db.php | 4 |
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"; |