From: Remi Gacogne Date: Thu, 1 Jul 2021 16:37:29 +0000 (+0200) Subject: dnsdist: Fix local response rules being copied in UDPTCPCrossQuerySender X-Git-Tag: dnsdist-1.7.0-alpha1~45^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc7939c8b91625fabc1c07fd244c62c81eafd890;p=thirdparty%2Fpdns.git dnsdist: Fix local response rules being copied in UDPTCPCrossQuerySender --- diff --git a/pdns/dnsdist.cc b/pdns/dnsdist.cc index 35406444be..6f36fcb06a 100644 --- a/pdns/dnsdist.cc +++ b/pdns/dnsdist.cc @@ -1322,7 +1322,7 @@ public: auto& ids = response.d_idstate; - thread_local LocalStateHolder> localRespRuleActions = g_respruleactions.getLocal(); + static thread_local LocalStateHolder> localRespRuleActions = g_respruleactions.getLocal(); DNSResponse dr = makeDNSResponseFromIDState(ids, response.d_buffer); if (response.d_buffer.size() > d_payloadSize) { vinfolog("Got a response of size %d over TCP, while the initial UDP payload size was %d, truncating", response.d_buffer.size(), d_payloadSize);