From 601901b9c4c525a07e019f4486a0e05c14d61d8e 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 (cherry picked from commit e863a05ab7566450710f8cdc2c08750f00bcde33) --- pdns/reczones.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/reczones.cc b/pdns/reczones.cc index b0ac82748f..afaf3575e9 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.47.2