From ee10c33eba66d20d6471d81b5f4e3484db30cfe6 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 27 Apr 2015 19:23:14 +0200 Subject: core_dns Update DNS::Request::name to be the same as in the packet --- src/coremods/core_dns.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/coremods/core_dns.cpp b/src/coremods/core_dns.cpp index a7ed8d3ed..f4f85e253 100644 --- a/src/coremods/core_dns.cpp +++ b/src/coremods/core_dns.cpp @@ -444,6 +444,9 @@ class MyManager : public Manager, public Timer, public EventHandler return; } + // Update name in the original request so question checking works for PTR queries + req->name = p.question.name; + if (SocketEngine::SendTo(this, buffer, len, 0, &this->myserver.sa, this->myserver.sa_size()) != len) throw Exception("DNS: Unable to send query"); } -- cgit v1.2.3