summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-08-16 13:37:37 +0000
committerErmal <eri@pfsense.org>2013-08-16 13:37:57 +0000
commit2391780c83898459ffc8420b8d588d96fc4186a4 (patch)
tree9e350ae8327b0ab558db000a4dc284ed2fee9168
parent329acfb2fe275d392934f76c08d65ba11207506e (diff)
downloadpfsense-2391780c83898459ffc8420b8d588d96fc4186a4.zip
pfsense-2391780c83898459ffc8420b8d588d96fc4186a4.tar.gz
Even if called with wrong parameters try to do something rather than return here.
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 88c17a7..fb62c06 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1180,6 +1180,9 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
$realif = get_real_interface($interface);
} elseif (!is_array($ifacecfg)) {
log_error(gettext("Wrong parameters used during interface_bring_down"));
+ $ifcfg = $config['interfaces'][$interface];
+ $ppps = $config['ppps']['ppp'];
+ $realif = get_real_interface($interface);
} else {
$ifcfg = $ifacecfg['ifcfg'];
$ppps = $ifacecfg['ppps'];
OpenPOWER on IntegriCloud