summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-01-09 11:39:33 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-01-09 11:39:33 -0200
commit02b8bfaebe03cbdd9ce312ba64d9b375842043ed (patch)
treefb2cdd16d349b0c79e6f9079040d7cc533e394fe
parent83bab77be786e86a72acecc9fb84adb3986b59a5 (diff)
downloadpfsense-02b8bfaebe03cbdd9ce312ba64d9b375842043ed.zip
pfsense-02b8bfaebe03cbdd9ce312ba64d9b375842043ed.tar.gz
Fix get_parent_interface() for ppp interfaces, it was using an unset variable $ppp_if
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index c7fb340..2826761 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -3597,7 +3597,7 @@ function get_parent_interface($interface) {
if (empty($parents))
if (is_array($config['ppps']['ppp']))
foreach ($config['ppps']['ppp'] as $pppidx => $ppp) {
- if ($ppp_if == $ppp['if']) {
+ if ($ifcfg['if'] == $ppp['if']) {
$ports = explode(',', $ppp['ports']);
foreach ($ports as $pid => $parent_if)
$parents[$pid] = get_real_interface($parent_if);
OpenPOWER on IntegriCloud