summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-09 04:17:32 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-09 04:17:32 +0000
commit90455aebc50996ed2c98a8bc7b90f25cc3a1e10d (patch)
tree2ae8a0ff5eae4913078d68b1b223ac907449ed2e /etc
parentf80a6148bc41a5db7518a7f2d4909545f7ca28c4 (diff)
downloadpfsense-90455aebc50996ed2c98a8bc7b90f25cc3a1e10d.zip
pfsense-90455aebc50996ed2c98a8bc7b90f25cc3a1e10d.tar.gz
Correct logic.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/captiveportal.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 4b0ef7c..201ddf5 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -622,7 +622,7 @@ function captiveportal_radius_stop_all($lock = false) {
if (!isset($config['captiveportal']['radacct_enable']))
return;
- if ($lock)
+ if (!$lock)
$captiveportallck = lock('captiveportal');
$cpdb = captiveportal_read_db();
@@ -642,14 +642,14 @@ function captiveportal_radius_stop_all($lock = false) {
7); // Admin Reboot
}
}
- if ($lock)
+ if (!$lock)
unlock($captiveportallck);
}
function captiveportal_passthrumac_configure($lock = false) {
global $config, $g;
- if ($lock)
+ if (!$lock)
$captiveportallck = lock('captiveportal');
/* clear out passthru macs, if necessary */
@@ -690,7 +690,7 @@ function captiveportal_passthrumac_configure($lock = false) {
}
}
- if ($lock)
+ if (!$lock)
unlock($captiveportallck);
return 0;
@@ -699,7 +699,7 @@ function captiveportal_passthrumac_configure($lock = false) {
function captiveportal_allowedip_configure($lock = false) {
global $config, $g;
- if ($lock)
+ if (!$lock)
$captiveportallck = lock('captiveportal');
/* clear out existing allowed ips, if necessary */
@@ -762,7 +762,7 @@ function captiveportal_allowedip_configure($lock = false) {
fclose($fd);
}
- if ($lock)
+ if (!$lock)
unlock($captiveportallck);
return 0;
}
OpenPOWER on IntegriCloud