mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 23:50:42 +00:00
network: fix condition for checking the provided gateway is assigned to link
Fix bug introduced by 221019166f.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user