]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: fix compare function for EtcHostItem 2444/head
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 26 Jan 2016 19:13:34 +0000 (20:13 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Tue, 26 Jan 2016 19:34:21 +0000 (20:34 +0100)
From dd0bc0f1

src/resolve/resolved-etc-hosts.c

index 467754774f876253fa93c9839e64f703498e7229..ee82c9682221a35840cbda8f6b2880f7cc53cb85 100644 (file)
@@ -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)