summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-02-11 10:56:37 +0000
committerErmal <eri@pfsense.org>2013-02-11 10:56:37 +0000
commitb16d70ebb133b1bf1ba0429d5d8b98698d670bd6 (patch)
tree127ca30d395252caaebec65503bfac8511c7167c
parent25d0e8c3cd0b09785e28df70df5cc1e767fd6a13 (diff)
downloadpfsense-b16d70ebb133b1bf1ba0429d5d8b98698d670bd6.zip
pfsense-b16d70ebb133b1bf1ba0429d5d8b98698d670bd6.tar.gz
Test that timeout value is bigger than 0
-rw-r--r--etc/inc/captiveportal.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 8b1381b..f364378 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -679,7 +679,7 @@ function captiveportal_prune_old() {
/* check if the radius idle_timeout attribute has been set and if its set change the idletimeout to this value */
$uidletimeout = (is_numeric($cpentry[8])) ? $cpentry[8] : $idletimeout;
/* if an idle timeout is specified, get last activity timestamp from ipfw */
- if (!$timedout && $uidletimeout) {
+ if (!$timedout && $uidletimeout > 0) {
$lastact = captiveportal_get_last_activity($cpentry[2]);
/* If the user has logged on but not sent any traffic they will never be logged out.
* We "fix" this by setting lastact to the login timestamp.
OpenPOWER on IntegriCloud