summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-07 21:14:14 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-07 21:14:14 +0000
commitc124e85b15afe4746351bb0b62ff3e40ac42f1c9 (patch)
treee1031e79188cbb4a432af4d94d0e691649f71e4f
parent484c5aabf8afbb3dd104cbb208bae5e2efa98c02 (diff)
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
-rw-r--r--src/modules/m_dnsbl.cpp2
1 files changed, 1 insertions, 1 deletions
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;