mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 03:25:31 +03:00
network: drop redundant and invalid destination address
When dst_prefixlen is not set, the value is not used.
This commit is contained in:
parent
70dc23624e
commit
750f919112
@ -876,10 +876,6 @@ int network_add_default_route_on_device(Network *network) {
|
|||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
r = in_addr_from_string(AF_INET, "169.254.0.0", &n->dst);
|
|
||||||
if (r < 0)
|
|
||||||
return r;
|
|
||||||
|
|
||||||
n->family = AF_INET;
|
n->family = AF_INET;
|
||||||
|
|
||||||
TAKE_PTR(n);
|
TAKE_PTR(n);
|
||||||
|
Loading…
Reference in New Issue
Block a user