mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
Merge pull request #2444 from phomes/resolve-compare-function
resolve: fix compare function for EtcHostItem
This commit is contained in:
commit
915849d895
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user