From c124e85b15afe4746351bb0b62ff3e40ac42f1c9 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 7 Feb 2007 21:14:14 +0000 Subject: A quick unit test shows this is broken -- fix quick git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6545 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_dnsbl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 6c08655bb..1cd08024b 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -70,7 +70,7 @@ class DNSBLResolver : public Resolver * YOUR CRACKPIPE. you know who you are. -- Brain */ inet_aton(result.c_str(), &resultip); - bitmask = resultip.s_addr & 0xFF; /* Last octet (network byte order */ + bitmask = resultip.s_addr >> 24; /* Last octet (network byte order */ bitmask &= ConfEntry->bitmask; -- cgit v1.2.3