summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-11-16 23:42:49 +0000
committerPeter Powell <petpow@saberuk.com>2018-11-16 23:42:49 +0000
commit37977710a79472741c043b2dc8c17f520429c9f4 (patch)
tree04556693242eb64ffa06f48f001b92f03dfd0d50 /src
parentd50a4bf02d4875c24327b01ba01883c831f44fc1 (diff)
Fix sending DNSBL error snotices when a user isn't DNSBLed.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_dnsbl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp
index 838c2c5c6..7b88bc961 100644
--- a/src/modules/m_dnsbl.cpp
+++ b/src/modules/m_dnsbl.cpp
@@ -218,7 +218,10 @@ class DNSBLResolver : public DNS::Request
countExt.set(them, i - 1);
if (q->error == DNS::ERROR_NO_RECORDS || q->error == DNS::ERROR_DOMAIN_NOT_FOUND)
+ {
ConfEntry->stats_misses++;
+ return;
+ }
ServerInstance->SNO->WriteGlobalSno('d', "An error occurred whilst checking whether %s (%s) is on the '%s' DNS blacklist: %s",
them->GetFullRealHost().c_str(), them->GetIPString().c_str(), ConfEntry->name.c_str(), this->manager->GetErrorStr(q->error).c_str());