mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-22 17:09:03 -04:00
Remove check that very rarely equates to true
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4750 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
55cf774593
commit
552be206b2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user