diff options
Diffstat (limited to 'src/network/core')
-rw-r--r-- | src/network/core/address.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/core/address.cpp b/src/network/core/address.cpp index 4e1237577..586ee863a 100644 --- a/src/network/core/address.cpp +++ b/src/network/core/address.cpp @@ -161,7 +161,7 @@ bool NetworkAddress::IsInNetmask(char *netmask) while (cidr > 0) { uint32 msk = cidr >= 32 ? (uint32)-1 : htonl(-(1 << (32 - cidr))); - if ((*mask & msk) != (*ip & msk)) return false; + if ((*mask++ & msk) != (*ip++ & msk)) return false; cidr -= 32; } |