From 37977710a79472741c043b2dc8c17f520429c9f4 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 16 Nov 2018 23:42:49 +0000 Subject: [PATCH] Fix sending DNSBL error snotices when a user isn't DNSBLed. --- src/modules/m_dnsbl.cpp | 3 +++ 1 file changed, 3 insertions(+) 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()); -- 2.39.2