]> granicus.if.org Git - pdns/commitdiff
dnsdist: Store the TCP response header in the response ring
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 30 Sep 2016 16:33:59 +0000 (18:33 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 30 Sep 2016 16:33:59 +0000 (18:33 +0200)
Until now we stored the query header in the response ring for TCP
queries..

pdns/dnsdist-tcp.cc

index e57f8064f22a58fc5f48d11e6b7267d666862628..5a8f774bf589b7f257c72a18c2b3a6a80d899b82 100644 (file)
@@ -472,7 +472,7 @@ void* tcpClientThread(int pipefd)
         unsigned int udiff = 1000000.0*DiffTime(now,answertime);
         {
           std::lock_guard<std::mutex> 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();