From e863a05ab7566450710f8cdc2c08750f00bcde33 Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Fri, 19 Jan 2018 19:54:44 +0100 Subject: [PATCH] Minimal fix to make primeHints threadsafe --- pdns/reczones.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/reczones.cc b/pdns/reczones.cc index 1961f8216..eb945e2fc 100644 --- a/pdns/reczones.cc +++ b/pdns/reczones.cc @@ -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; -- 2.40.0