summaryrefslogtreecommitdiffstats
path: root/src/etc
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:26:02 -0200
commite2a059e24fca83a7da9a2f3ebf63ded80e06481a (patch)
treed2fc94b57e337e1d5540a77c80527a93c566db5f /src/etc
parent44e938b370043a7659135a332c0d846cf9cdc51f (diff)
downloadpfsense-e2a059e24fca83a7da9a2f3ebf63ded80e06481a.zip
pfsense-e2a059e24fca83a7da9a2f3ebf63ded80e06481a.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')
-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 4e70674..7833571 100644
--- a/src/etc/inc/services.inc
+++ b/src/etc/inc/services.inc
@@ -2625,9 +2625,13 @@ 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