summaryrefslogtreecommitdiffstats
path: root/etc
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:45 -0200
commit20623f576e8189e3db230dbbe4a4a7e7b1be3282 (patch)
tree3d2e81a2daeb79c0cafec085b210f3cf6fcdc336 /etc
parentbf75550387f2d76a0300253a322f42d6ecdf6460 (diff)
downloadpfsense-20623f576e8189e3db230dbbe4a4a7e7b1be3282.zip
pfsense-20623f576e8189e3db230dbbe4a4a7e7b1be3282.tar.gz
Fix an attempt to read unset variable $rtent
Diffstat (limited to 'etc')
-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 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;
}
}
OpenPOWER on IntegriCloud