diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 21:44:55 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-06 21:44:55 +0000 |
commit | 552be206b2fbf6f590be4e536bb7cd757f6f29dd (patch) | |
tree | 4f55d1adc04c2a2c0ac459f32373d07ee90afe3f | |
parent | 55cf77459383a2480a6898c99fe0ef00a578f199 (diff) |
Remove check that very rarely equates to true
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4750 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/socket.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index dde1b1bae..1821120f4 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -49,10 +49,6 @@ bool MatchCIDRBits(unsigned char* address, unsigned char* mask, unsigned int mas unsigned int modulus = mask_bits % 8; /* Number of whole bytes in the mask */ unsigned int divisor = mask_bits / 8; /* Remaining bits in the mask after whole bytes are dealt with */ - /* We shouldnt match anything, /0 is always valid */ - if (!mask_bits) - return true; - /* First compare the whole bytes, if they dont match, return false */ if (memcmp(address, mask, divisor)) return false; |