From: Yu Watanabe Date: Thu, 24 Dec 2020 04:07:30 +0000 (+0900) Subject: network: fix condition for checking the provided gateway is assigned to link X-Git-Tag: v248-rc1~450^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1cd5267e815a451ed9ee228d90b3c192a529dfcf;p=thirdparty%2Fsystemd.git network: fix condition for checking the provided gateway is assigned to link Fix bug introduced by 221019166f315252304b3459902ead613b905de5. --- diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 2027b73a561..7088cfa123b 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -849,7 +849,7 @@ static int ndisc_router_process_route(Link *link, sd_ndisc_router *rt) { return 0; } - if (link_has_ipv6_address(link, &gateway.in6) == 0) { + if (link_has_ipv6_address(link, &gateway.in6) > 0) { if (DEBUG_LOGGING) { _cleanup_free_ char *buf = NULL;