Commit a976ac5b authored by Franco Fichtner's avatar Franco Fichtner

dhcp: fix a crash report

(cherry picked from commit 62a8d031)
parent a8e1d848
...@@ -279,7 +279,7 @@ if (isset($_POST['submit'])) { ...@@ -279,7 +279,7 @@ if (isset($_POST['submit'])) {
$input_errors[] = gettext("You cannot use the broadcast address in the ending subnet range."); $input_errors[] = gettext("You cannot use the broadcast address in the ending subnet range.");
// Disallow a range that includes the virtualip // Disallow a range that includes the virtualip
if (is_array($config['virtualip']['vip'])) { if (isset($config['virtualip']['vip'])) {
foreach($config['virtualip']['vip'] as $vip) { foreach($config['virtualip']['vip'] as $vip) {
if($vip['interface'] == $if) if($vip['interface'] == $if)
if($vip['subnet'] && is_inrange_v4($vip['subnet'], $_POST['range_from'], $_POST['range_to'])) if($vip['subnet'] && is_inrange_v4($vip['subnet'], $_POST['range_from'], $_POST['range_to']))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment