From: Yu Watanabe Date: Wed, 8 Feb 2023 20:55:42 +0000 (+0900) Subject: nss-myhostname: fix inverted condition in X-Git-Tag: v253-rc3~15^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3b993ca3fb6fc0b837745c1ae82aca684951842;p=thirdparty%2Fsystemd.git nss-myhostname: fix inverted condition in Fixes a bug introduced by db50d326a46beca3cc24b6354b6e1b3591902d45. --- diff --git a/src/nss-myhostname/nss-myhostname.c b/src/nss-myhostname/nss-myhostname.c index 3af1d2f0c13..1b340e11d46 100644 --- a/src/nss-myhostname/nss-myhostname.c +++ b/src/nss-myhostname/nss-myhostname.c @@ -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) {