summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/services.inc
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-01-12 19:23:20 -0200
committerRenato Botelho <renato@netgate.com>2017-01-12 19:23:20 -0200
commited680fda05f2d2d17a59d2893a6ae45e0cbef164 (patch)
tree63230e4b4dc2dd6c3ae172213e4994ecdfedc56a /src/etc/inc/services.inc
parentda2a39e2961d22a403df464534b52bf6dbf9cf01 (diff)
downloadpfsense-ed680fda05f2d2d17a59d2893a6ae45e0cbef164.zip
pfsense-ed680fda05f2d2d17a59d2893a6ae45e0cbef164.tar.gz
Fix #6153
Initialize cached IP and Time on loop for RFC2136 items, without this the items used on last loop iteration will be used again and second item on the same interface will not be updated
Diffstat (limited to 'src/etc/inc/services.inc')
-rw-r--r--src/etc/inc/services.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc
index 45177d2..8831e07 100644
--- a/src/etc/inc/services.inc
+++ b/src/etc/inc/services.inc
@@ -2592,10 +2592,14 @@ EOD;
$upinst .= "server {$dnsupdate['server']}\n";
}
+ $cachedipv4 = '';
+ $cacheTimev4 = 0;
if (file_exists($cacheFile)) {
list($cachedipv4, $cacheTimev4) = explode("|",
file_get_contents($cacheFile));
}
+ $cachedipv6 = '';
+ $cacheTimev6 = 0;
if (file_exists($cacheFilev6)) {
list($cachedipv6, $cacheTimev6) = explode("|",
file_get_contents($cacheFilev6));
OpenPOWER on IntegriCloud