summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@netgate.com>2018-09-12 15:46:57 -0400
committerjim-p <jimp@netgate.com>2018-09-12 15:57:16 -0400
commit4868ef354885a00de94d83775436da305ecc4f2d (patch)
tree13daa19fa1626e339215de001b5d67c6917eecd9
parent3d9d84d4bb3972bfddc30b1b35152ae3ba7c1cb8 (diff)
downloadpfsense-4868ef354885a00de94d83775436da305ecc4f2d.zip
pfsense-4868ef354885a00de94d83775436da305ecc4f2d.tar.gz
Initialize DHCP settings in setup wizard. Fixes #8889
Rather than assume they are present, create the arrays before use. (cherry picked from commit 7c15c19d76eac725c42133012488cb97e4dcd885)
-rw-r--r--src/usr/local/www/wizards/setup_wizard.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/local/www/wizards/setup_wizard.xml b/src/usr/local/www/wizards/setup_wizard.xml
index 293e8a4..35486a0 100644
--- a/src/usr/local/www/wizards/setup_wizard.xml
+++ b/src/usr/local/www/wizards/setup_wizard.xml
@@ -669,6 +669,8 @@
If the existing DHCP range on LAN is not in the new subnet or
is invalid, then replace the range with a newly crafted one.
*/
+ init_config_arr(array('dhcpd', 'lan', 'range', 'from'));
+ init_config_arr(array('dhcpd', 'lan', 'range', 'to'));
if (!ip_in_subnet($config['dhcpd']['lan']['range']['from'], "{$_POST['lanipaddress']}/{$_POST['subnetmask']}") ||
!ip_in_subnet($config['dhcpd']['lan']['range']['to'], "{$_POST['lanipaddress']}/{$_POST['subnetmask']}")) {
OpenPOWER on IntegriCloud