diff options
author | Adam <Adam@anope.org> | 2017-04-07 14:25:48 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-04-07 14:25:48 -0400 |
commit | aa20b54f7bc1019a3cc06d40c1e6037916da6555 (patch) | |
tree | c116e536ecd1e20c22bcfca09de638433c6d967f /modules | |
parent | e851f872d5f344f943efe411e4f600b0b009d095 (diff) | |
parent | ef32505633ad40bd3937edfa739f6b13ecdda599 (diff) |
Merge commit 'ef32505633ad40bd3937edfa739f6b13ecdda599'
Diffstat (limited to 'modules')
-rw-r--r-- | modules/dns.cpp | 3 | ||||
-rw-r--r-- | modules/operserv/dns.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/dns.cpp b/modules/dns.cpp index 62659414a..d717d53b1 100644 --- a/modules/dns.cpp +++ b/modules/dns.cpp @@ -862,6 +862,9 @@ class MyManager : public Manager, public Timer } } + if (packet->answers.empty() && packet->authorities.empty() && packet->additional.empty() && packet->error == ERROR_NONE) + packet->error = ERROR_REFUSED; // usually safe, won't cause an NXDOMAIN to get cached + s->Reply(packet); return true; } diff --git a/modules/operserv/dns.cpp b/modules/operserv/dns.cpp index 2968ba190..1fafb0745 100644 --- a/modules/operserv/dns.cpp +++ b/modules/operserv/dns.cpp @@ -1047,7 +1047,6 @@ class ModuleDNS : public Module if (packet->answers.size() == answer_size) { logger.Log("Error! There are no servers with any IPs of type {0}", q.type); - /* Send back an empty answer anyway */ } } } |