diff options
author | Renato Botelho <renato@netgate.com> | 2017-01-12 19:23:20 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-01-12 19:26:02 -0200 |
commit | e2a059e24fca83a7da9a2f3ebf63ded80e06481a (patch) | |
tree | d2fc94b57e337e1d5540a77c80527a93c566db5f /src/etc | |
parent | 44e938b370043a7659135a332c0d846cf9cdc51f (diff) | |
download | pfsense-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.inc | 4 |
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)); } |