From: Yu Watanabe Date: Fri, 4 Nov 2022 03:53:07 +0000 (+0900) Subject: resolve: drop redundant call of socket_ipv6_is_supported() X-Git-Tag: v253-rc1~553^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6e4aa7b0370c8b39739e9d5dda780932489507a;p=thirdparty%2Fsystemd.git resolve: drop redundant call of socket_ipv6_is_supported() As link_relevant() is called with AF_INET6, which returns true only when the link has at least one relevant IPv6 address. --- diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c index 5b34677cbef..94ad939c5e8 100644 --- a/src/resolve/resolved-link.c +++ b/src/resolve/resolved-link.c @@ -152,8 +152,7 @@ void link_allocate_scopes(Link *l) { if (link_relevant(l, AF_INET6, true) && l->llmnr_support != RESOLVE_SUPPORT_NO && - l->manager->llmnr_support != RESOLVE_SUPPORT_NO && - socket_ipv6_is_supported()) { + l->manager->llmnr_support != RESOLVE_SUPPORT_NO) { if (!l->llmnr_ipv6_scope) { r = dns_scope_new(l->manager, &l->llmnr_ipv6_scope, l, DNS_PROTOCOL_LLMNR, AF_INET6); if (r < 0)