summaryrefslogtreecommitdiffstats
path: root/usr/local/www/easyrule.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-06-18 20:29:02 +0000
committerErmal Luçi <eri@pfsense.org>2009-06-18 20:29:02 +0000
commitab0dbe3cb175c88541a23035e7accca5c8bd1120 (patch)
tree88e6a425b691dc1a07e510806317d16b72896bf6 /usr/local/www/easyrule.inc
parentf239ff11025e7902bd5db3fba3086cbd871aaeea (diff)
downloadpfsense-ab0dbe3cb175c88541a23035e7accca5c8bd1120.zip
pfsense-ab0dbe3cb175c88541a23035e7accca5c8bd1120.tar.gz
Remove uneccessary locking.
Diffstat (limited to 'usr/local/www/easyrule.inc')
-rw-r--r--usr/local/www/easyrule.inc6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr/local/www/easyrule.inc b/usr/local/www/easyrule.inc
index f49e791..1900f24 100644
--- a/usr/local/www/easyrule.inc
+++ b/usr/local/www/easyrule.inc
@@ -208,9 +208,7 @@ function easyrule_block_host_add($host, $int = 'wan') {
/* If needed, write the config and reload the filter */
if ($dirty) {
write_config();
- config_lock();
$retval = filter_configure();
- config_unlock();
header("Location: firewall_aliases.php");
exit;
} else {
@@ -251,10 +249,8 @@ function easyrule_pass_rule_add($int, $proto, $srchost, $dsthost, $dstport) {
$a_filter[] = $filterent;
write_config();
- config_lock();
$retval = filter_configure();
- config_unlock();
header("Location: firewall_rules.php?if={$int}");
exit;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud