fix CSubNet comparison operator

This commit is contained in:
Jonas Schnelli
2017-03-02 13:23:03 -08:00
committed by Jack Grigg
parent fcc8920f36
commit 171b4de8d9
+1 -1
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