mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
network/nexthop: fix wrong verification
This checks the nexthop is not a blackhole, gateway is unrelated.
This commit is contained in:
parent
c1e0890004
commit
4464c3205c
|
@ -1018,7 +1018,7 @@ static int nexthop_section_verify(NextHop *nh) {
|
|||
"Ignoring [NextHop] section from line %u.",
|
||||
nh->section->filename, nh->section->line);
|
||||
|
||||
if (nh->blackhole && in_addr_is_set(nh->family, &nh->gw))
|
||||
if (nh->blackhole)
|
||||
return log_warning_errno(SYNTHETIC_ERRNO(EINVAL),
|
||||
"%s: nexthop group cannot be a blackhole. "
|
||||
"Ignoring [NextHop] section from line %u.",
|
||||
|
|
Loading…
Reference in a new issue