From b9ebcf139761cd7faf55142f1c8fc01fb09edb1d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 30 Sep 2016 18:33:59 +0200 Subject: [PATCH] dnsdist: Store the TCP response header in the response ring Until now we stored the query header in the response ring for TCP queries.. --- pdns/dnsdist-tcp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist-tcp.cc b/pdns/dnsdist-tcp.cc index e57f8064f2..5a8f774bf5 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(); -- 2.47.2