Commit 4ad7a3b6 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) some more isset issues in interfaces.inc

parent e28ebb61
......@@ -1266,7 +1266,12 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
}
$track6 = array();
switch ($ifcfg['ipaddrv6']) {
if (isset($ifcfg['ipaddrv6'])) {
$ipaddrv6 = $ifcfg['ipaddrv6'];
} else {
$ipaddrv6 = null;
}
switch ($ipaddrv6) {
case "slaac":
case "dhcp6":
$pidv6 = find_dhcp6c_process($realif);
......@@ -1345,7 +1350,7 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
/* hostapd and wpa_supplicant do not need to be running when the interface is down.
* They will also use 100% CPU if running after the wireless clone gets deleted. */
if (is_array($ifcfg['wireless'])) {
if (isset($ifcfg['wireless']) && is_array($ifcfg['wireless'])) {
kill_hostapd($realif);
mwexec(kill_wpasupplicant($realif));
}
......@@ -4559,6 +4564,8 @@ function find_interface_ip($interface, $flush = false) {
$ifinfo = pfSense_get_interface_addresses($interface);
if (isset($ifinfo['ipaddr'])) {
$interface_ip_arr_cache[$interface] = $ifinfo['ipaddr'];
} else {
return null;
}
}
......
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