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:28 -0200 |
commit | 7610d2287c66dc8397cd132743340168c785256a (patch) | |
tree | db1254c8b9e53fecd0e1fb3d6976f3683000fcb1 /etc/inc/services.inc | |
parent | f44ac2e9734396efa0653fbed255c28e074ae8dd (diff) | |
download | pfsense-7610d2287c66dc8397cd132743340168c785256a.zip pfsense-7610d2287c66dc8397cd132743340168c785256a.tar.gz |
Fix an attempt to read unset variable $rtent
Diffstat (limited to 'etc/inc/services.inc')
-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 e0f32dd..623040e 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -1358,8 +1358,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; } } @@ -1477,8 +1476,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; } } |