summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2016-01-26 20:13:34 +0100
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2016-01-26 20:34:21 +0100
commitec76e139d8ce0a1183ae7639ae31a28e7e90791b (patch)
tree875544ca28e2bfd56d83e38744010f51d2b15df1 /src/resolve
parent44cc9f2d769596c41f2ace9a4093651b0688d0f8 (diff)
resolve: fix compare function for EtcHostItem
From dd0bc0f1
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/resolved-etc-hosts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-etc-hosts.c b/src/resolve/resolved-etc-hosts.c
index 467754774f..ee82c96822 100644
--- a/src/resolve/resolved-etc-hosts.c
+++ b/src/resolve/resolved-etc-hosts.c
@@ -78,7 +78,7 @@ static void etc_hosts_item_hash_func(const void *p, struct siphash *state) {
static int etc_hosts_item_compare_func(const void *a, const void *b) {
const EtcHostsItem *x = a, *y = b;
- if (x->family != x->family)
+ if (x->family != y->family)
return x->family - y->family;
if (x->family == AF_INET)