mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
nss-myhostname: fix inverted condition in
Fixes a bug introduced by db50d326a4
.
This commit is contained in:
parent
c80ff4a435
commit
a3b993ca3f
@ -461,7 +461,7 @@ enum nss_status _nss_myhostname_gethostbyaddr2_r(
|
||||
} else {
|
||||
assert(af == AF_INET6);
|
||||
|
||||
if (socket_ipv6_is_enabled())
|
||||
if (!socket_ipv6_is_enabled())
|
||||
goto not_found;
|
||||
|
||||
if (memcmp(addr, LOCALADDRESS_IPV6, 16) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user