summaryrefslogtreecommitdiffstats
path: root/src/usr/local/sbin/prefixes.php
diff options
context:
space:
mode:
authorAnders Lind <anders.lind@gmail.com>2016-03-01 22:08:55 +0100
committerAnders Lind <anders.lind@gmail.com>2016-03-01 22:08:55 +0100
commitba045ef1463e47d432a68a1d1ae8c35075d84156 (patch)
treee98504682ee6a5114ff8be72f47d012b56670fb7 /src/usr/local/sbin/prefixes.php
parent5e422c880d7de319886b4ce84508185a925f5ef1 (diff)
downloadpfsense-ba045ef1463e47d432a68a1d1ae8c35075d84156.zip
pfsense-ba045ef1463e47d432a68a1d1ae8c35075d84156.tar.gz
Check $active
Fix missing check for $active to avoid creating a route to a released lease.
Diffstat (limited to 'src/usr/local/sbin/prefixes.php')
-rw-r--r--src/usr/local/sbin/prefixes.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/sbin/prefixes.php b/src/usr/local/sbin/prefixes.php
index 8ad1ec4..2626c30 100644
--- a/src/usr/local/sbin/prefixes.php
+++ b/src/usr/local/sbin/prefixes.php
@@ -47,7 +47,7 @@ while (( $line = fgets($fd, 4096)) !== false) {
/* closing bracket */
if (preg_match("/^}/i", $line)) {
- if (isset($duid) && $duid !== false) {
+ if (isset($duid) && $duid !== false && $active === true) {
switch ($type) {
case "ia-na":
$duid_arr[$duid][$type] = $ia_na;
OpenPOWER on IntegriCloud