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

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