diff options
Diffstat (limited to 'net/base/host_cache.h')
-rw-r--r-- | net/base/host_cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/base/host_cache.h b/net/base/host_cache.h index 538f7ef..b36af35 100644 --- a/net/base/host_cache.h +++ b/net/base/host_cache.h @@ -42,9 +42,9 @@ class HostCache { } bool operator<(const Key& other) const { - if (address_family < other.address_family) - return true; - return hostname < other.hostname; + if (address_family == other.address_family) + return hostname < other.hostname; + return address_family < other.address_family; } std::string hostname; |