From: Remi Gacogne Date: Fri, 30 Sep 2016 16:33:59 +0000 (+0200) Subject: dnsdist: Store the TCP response header in the response ring X-Git-Tag: dnsdist-1.1.0-beta2~58^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9ebcf139761cd7faf55142f1c8fc01fb09edb1d;p=pdns dnsdist: Store the TCP response header in the response ring Until now we stored the query header in the response ring for TCP queries.. --- diff --git a/pdns/dnsdist-tcp.cc b/pdns/dnsdist-tcp.cc index e57f8064f..5a8f774bf 100644 --- a/pdns/dnsdist-tcp.cc +++ b/pdns/dnsdist-tcp.cc @@ -472,7 +472,7 @@ void* tcpClientThread(int pipefd) unsigned int udiff = 1000000.0*DiffTime(now,answertime); { std::lock_guard lock(g_rings.respMutex); - g_rings.respRing.push_back({answertime, ci.remote, qname, dq.qtype, (unsigned int)udiff, (unsigned int)responseLen, *dq.dh, ds->remote}); + g_rings.respRing.push_back({answertime, ci.remote, qname, dq.qtype, (unsigned int)udiff, (unsigned int)responseLen, *dh, ds->remote}); } largerQuery.clear();