From: Thomas Hindoe Paaboel Andersen Date: Tue, 26 Jan 2016 19:13:34 +0000 (+0100) Subject: resolve: fix compare function for EtcHostItem X-Git-Tag: v229~80^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ec76e139d8ce0a1183ae7639ae31a28e7e90791b;p=thirdparty%2Fsystemd.git resolve: fix compare function for EtcHostItem From dd0bc0f1 --- diff --git a/src/resolve/resolved-etc-hosts.c b/src/resolve/resolved-etc-hosts.c index 467754774f8..ee82c968222 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)