From 1cd5267e815a451ed9ee228d90b3c192a529dfcf Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 24 Dec 2020 13:07:30 +0900 Subject: [PATCH] network: fix condition for checking the provided gateway is assigned to link Fix bug introduced by 221019166f315252304b3459902ead613b905de5. --- src/network/networkd-ndisc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index 2027b73a56..7088cfa123 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;