diff options
author | Ermal <eri@pfsense.org> | 2013-12-24 10:23:57 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-12-24 10:23:57 +0000 |
commit | 3f2ae9d58f5ea3d9de175e8daa9c8902b3f23440 (patch) | |
tree | 354b26ae497d454e6126f65a0bdf01ba25592fea /etc | |
parent | 4fd85b115e2550969ddeadd43a2bc6dafff21779 (diff) | |
download | pfsense-3f2ae9d58f5ea3d9de175e8daa9c8902b3f23440.zip pfsense-3f2ae9d58f5ea3d9de175e8daa9c8902b3f23440.tar.gz |
Properly initialize this
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/captiveportal.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index 8234895..b0152a2 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -1344,6 +1344,7 @@ function captiveportal_free_dnrules($rulenos_start = 2000, $rulenos_range_max = $cpruleslck = lock("captiveportalrulesdn", LOCK_EX); if (file_exists("{$g['vardb_path']}/captiveportaldn.rules")) { $rules = unserialize(file_get_contents("{$g['vardb_path']}/captiveportaldn.rules")); + $ridx = $rulenos_start; while ($ridx < $rulenos_range_max) { if ($rules[$ridx] == $cpzone) { $rules[$ridx] = false; |