summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSusant Sahani <susant@redhat.com>2017-04-25 19:59:39 +0530
committerSusant Sahani <susant@redhat.com>2017-04-25 19:59:39 +0530
commit4c7bd9cf6becd97101cd25c87853fdd18bdcbb45 (patch)
tree0507da7e8967970e85823f506f360a6a4ae847d7 /src
parent3ded5bbfdac0f809632067a3643570848dc11000 (diff)
networkd: route add missing search for route object.
Probaly this happened during rebase.
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-route.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c
index 56f831628c..94204bddd0 100644
--- a/src/network/networkd-route.c
+++ b/src/network/networkd-route.c
@@ -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"))