network: fix condition for checking the provided gateway is assigned to link
Fix bug introduced by 221019166f
.
This commit is contained in:
parent
0afa4d569d
commit
1cd5267e81
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue