summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_relay.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-15 03:33:18 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-15 03:33:18 +0000
commit767a716ecd96105621e239633c04651a02bd8fb8 (patch)
treea9455173dba67b71599f611cb3eebb6aaa584745 /usr/local/www/services_dhcp_relay.php
parent3e789a8b1385cbd0ccc952b7eac5e1e01ff1a478 (diff)
downloadpfsense-767a716ecd96105621e239633c04651a02bd8fb8.zip
pfsense-767a716ecd96105621e239633c04651a02bd8fb8.tar.gz
Correct warnings and errors found eclipse
Diffstat (limited to 'usr/local/www/services_dhcp_relay.php')
-rwxr-xr-xusr/local/www/services_dhcp_relay.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/services_dhcp_relay.php b/usr/local/www/services_dhcp_relay.php
index cb2497a..01daadc 100755
--- a/usr/local/www/services_dhcp_relay.php
+++ b/usr/local/www/services_dhcp_relay.php
@@ -34,6 +34,9 @@ function get_wan_dhcp_server() {
$dhclientfn = $g['vardb_path'] . "/dhclient.leases";
$leases = file($dhclientfn);
/* Start at the end, work backwards finding the latest lease for the WAN */
+ $dhcpserver = "";
+ $iface = "";
+ $iface = "";
for ($i = (count($leases)-1); $i >= 0; $i--) {
if ($leases[$i] == "}") {
unset($iface);
OpenPOWER on IntegriCloud