diff options
author | Anders Lind <anders.lind@gmail.com> | 2016-03-01 22:08:55 +0100 |
---|---|---|
committer | Anders Lind <anders.lind@gmail.com> | 2016-03-01 22:08:55 +0100 |
commit | ba045ef1463e47d432a68a1d1ae8c35075d84156 (patch) | |
tree | e98504682ee6a5114ff8be72f47d012b56670fb7 /src/usr/local | |
parent | 5e422c880d7de319886b4ce84508185a925f5ef1 (diff) | |
download | pfsense-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')
-rw-r--r-- | src/usr/local/sbin/prefixes.php | 2 |
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; |