1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +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:
Yu Watanabe 2019-08-29 08:11:02 +09:00
parent 70dc23624e
commit 750f919112

View File

@ -876,10 +876,6 @@ int network_add_default_route_on_device(Network *network) {
if (r < 0)
return r;
r = in_addr_from_string(AF_INET, "169.254.0.0", &n->dst);
if (r < 0)
return r;
n->family = AF_INET;
TAKE_PTR(n);