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:23:20 -0200 |
commit | ed680fda05f2d2d17a59d2893a6ae45e0cbef164 (patch) | |
tree | 63230e4b4dc2dd6c3ae172213e4994ecdfedc56a /src/etc/inc/services.inc | |
parent | da2a39e2961d22a403df464534b52bf6dbf9cf01 (diff) | |
download | pfsense-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.inc | 4 |
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)); |