aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <jonas.schnelli@include7.ch>2015-06-12 19:51:50 +0200
committerJonas Schnelli <jonas.schnelli@include7.ch>2015-06-17 21:40:55 +0200
commitd624167387a658c9b2c25ad13492262ccd2592bf (patch)
tree920bba7c8926753fff16e77e7ae55ccb1ab7d141 /src/netbase.cpp
parent4e36e9bcc7d071bba4c45fd89c0cfd2e2361ffe3 (diff)
fix CSubNet comparison operator
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index b7c77fda6b..adac5c2d07 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -1332,7 +1332,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