networkd: route add missing search for route object.

Probaly this happened during rebase.
This commit is contained in:
Susant Sahani 2017-04-25 19:59:39 +05:30
parent 3ded5bbfda
commit 4c7bd9cf6b
1 changed files with 4 additions and 0 deletions

View File

@ -996,6 +996,10 @@ int config_parse_ipv6_route_preference(const char *unit,
_cleanup_route_free_ Route *n = NULL;
int r;
r = route_new_static(network, filename, section_line, &n);
if (r < 0)
return r;
if (streq(rvalue, "low"))
n->pref = ICMPV6_ROUTER_PREF_LOW;
else if (streq(rvalue, "medium"))