summaryrefslogtreecommitdiffstats
path: root/etc/inc/services.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-10-28 10:35:28 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-10-28 10:35:28 -0200
commit7610d2287c66dc8397cd132743340168c785256a (patch)
treedb1254c8b9e53fecd0e1fb3d6976f3683000fcb1 /etc/inc/services.inc
parentf44ac2e9734396efa0653fbed255c28e074ae8dd (diff)
downloadpfsense-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.inc6
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;
}
}
OpenPOWER on IntegriCloud