diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-01-09 11:39:33 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-01-09 11:39:33 -0200 |
commit | 02b8bfaebe03cbdd9ce312ba64d9b375842043ed (patch) | |
tree | fb2cdd16d349b0c79e6f9079040d7cc533e394fe | |
parent | 83bab77be786e86a72acecc9fb84adb3986b59a5 (diff) | |
download | pfsense-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.inc | 2 |
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); |