From cfeb109f4d7b0a6b3e18c9bf1e8a387b75a32bd7 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Mon, 17 Oct 2016 12:19:06 +0200 Subject: [PATCH] rec: Fix src/dest inversion in the protobuf message for TCP queries (cherry picked from commit 35a7fc41b202da6406f88e79d0bd7b3dccfcae5c) --- pdns/pdns_recursor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 079ca11a0..66c62c934 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1354,7 +1354,7 @@ void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var) const struct dnsheader* dh = (const struct dnsheader*) conn->data; dc->d_ednssubnet = ednssubnet; - protobufLogQuery(luaconfsLocal->protobufServer, luaconfsLocal->protobufMaskV4, luaconfsLocal->protobufMaskV6, dc->d_uuid, dest, conn->d_remote, ednssubnet, true, dh->id, conn->qlen, qname, qtype, qclass, dc->d_policyTags); + protobufLogQuery(luaconfsLocal->protobufServer, luaconfsLocal->protobufMaskV4, luaconfsLocal->protobufMaskV6, dc->d_uuid, conn->d_remote, dest, ednssubnet, true, dh->id, conn->qlen, qname, qtype, qclass, dc->d_policyTags); } catch(std::exception& e) { if(g_logCommonErrors) -- 2.40.0