fix CSubNet comparison operator

This commit is contained in:
Jonas Schnelli 2015-06-12 19:51:50 +02:00 committed by Jack Grigg
parent fcc8920f36
commit 171b4de8d9
No known key found for this signature in database
GPG Key ID: 6A6914DAFBEA00DA
1 changed files with 1 additions and 1 deletions

View File

@ -1342,7 +1342,7 @@ bool operator!=(const CSubNet& a, const CSubNet& b)
bool operator<(const CSubNet& a, const CSubNet& b)
{
return (a.network < b.network || (a.network == b.network && memcmp(a.netmask, b.netmask, 16)));
return (a.network < b.network || (a.network == b.network && memcmp(a.netmask, b.netmask, 16) < 0));
}
#ifdef WIN32