From 7586cb54da300924f92d4b7b8c121ecabb5e7126 Mon Sep 17 00:00:00 2001 From: Matt Schatz Date: Fri, 3 Jul 2020 10:35:38 -0600 Subject: Fix DNSBL connect class matching. A user that is not marked by a DNSBL should never match a class that requires a DNSBL marking. Thanks to @kylef for reporting this on IRC. --- src/modules/m_dnsbl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_dnsbl.cpp') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 90d1f50e2..32e05aebd 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -435,7 +435,7 @@ class ModuleDNSBL : public Module, public Stats::EventListener std::string* match = nameExt.get(user); if (!match) - return MOD_RES_PASSTHRU; + return MOD_RES_DENY; if (InspIRCd::Match(*match, dnsbl)) return MOD_RES_PASSTHRU; -- cgit v1.2.3