diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-10-28 10:35:28 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-10-28 10:35:45 -0200 |
commit | 20623f576e8189e3db230dbbe4a4a7e7b1be3282 (patch) | |
tree | 3d2e81a2daeb79c0cafec085b210f3cf6fcdc336 /etc | |
parent | bf75550387f2d76a0300253a322f42d6ecdf6460 (diff) | |
download | pfsense-20623f576e8189e3db230dbbe4a4a7e7b1be3282.zip pfsense-20623f576e8189e3db230dbbe4a4a7e7b1be3282.tar.gz |
Fix an attempt to read unset variable $rtent
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/services.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 856d0b3..0a89302 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -1368,8 +1368,7 @@ function services_dhcrelay_configure() { if (is_array($config['gateways']['gateway_item'])) { foreach ($config['gateways']['gateway_item'] as $gateway) { if (isset($gateway['defaultgw'])) { - $a_gateways = return_gateways_array(true); - $destif = $a_gateways[$rtent['gateway']]['interface']; + $destif = $gateway['interface']; break; } } @@ -1487,8 +1486,7 @@ function services_dhcrelay6_configure() { if (is_array($config['gateways']['gateway_item'])) { foreach ($config['gateways']['gateway_item'] as $gateway) { if (isset($gateway['defaultgw'])) { - $a_gateways = return_gateways_array(true); - $destif = $a_gateways[$rtent['gateway']]['interface']; + $destif = $gateway['interface']; break; } } |