diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-20 15:21:22 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-20 15:21:22 -0200 |
commit | b5ccfb0bf3c67d898cfa9e2df8e885df61e1bc69 (patch) | |
tree | 7f58d1b9557d3f231ae315129218198c2e42adba /src/etc | |
parent | 0f2771345533b4020f4ab31e786d3978b35bea0a (diff) | |
download | pfsense-b5ccfb0bf3c67d898cfa9e2df8e885df61e1bc69.zip pfsense-b5ccfb0bf3c67d898cfa9e2df8e885df61e1bc69.tar.gz |
Initialize $stop_time inside foreach to make sure it resets to proper value each iteration since it's changed inside loop. Reported on https://github.com/pfsense/pfsense/pull/2487
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/captiveportal.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/captiveportal.inc b/src/etc/inc/captiveportal.inc index 032b2f4..78f1eb1 100644 --- a/src/etc/inc/captiveportal.inc +++ b/src/etc/inc/captiveportal.inc @@ -674,8 +674,8 @@ function captiveportal_prune_old() { * If something is missed next run will catch it! */ $pruning_time = time(); - $stop_time = $pruning_time; foreach ($cpdb as $cpentry) { + $stop_time = $pruning_time; $timedout = false; $term_cause = 1; |