network: fix condition for checking the provided gateway is assigned to link

Fix bug introduced by 221019166f.
This commit is contained in:
Yu Watanabe 2020-12-24 13:07:30 +09:00
parent 0afa4d569d
commit 1cd5267e81
1 changed files with 1 additions and 1 deletions

View File

@ -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;