]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/nss-myhostname/nss-myhostname.c
nss-myhostname: fix inverted condition in
[thirdparty/systemd.git] / src / nss-myhostname / nss-myhostname.c
index 3af1d2f0c13fbac994ab6d233b33392e18ae6db7..1b340e11d467ddd813a4847d1377828445002465 100644 (file)
@@ -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) {