]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Minimal fix to make primeHints threadsafe
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 19 Jan 2018 18:54:44 +0000 (19:54 +0100)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Fri, 19 Jan 2018 18:54:44 +0000 (19:54 +0100)
pdns/reczones.cc

index 1961f8216fd80e27e8fc069d1709bf42280ca9f6..eb945e2fcd8abd1428e9dcfb67ff845b13c6424e 100644 (file)
@@ -53,7 +53,7 @@ void primeHints(void)
     arr.d_ttl=aaaarr.d_ttl=nsrr.d_ttl=time(0)+3600000;
     
     for(char c='a';c<='m';++c) {
-      static char templ[40];
+      char templ[40];
       strncpy(templ,"a.root-servers.net.", sizeof(templ) - 1);
       templ[sizeof(templ)-1] = '\0';
       *templ=c;