]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: route add missing search for route object. 5803/head
authorSusant Sahani <susant@redhat.com>
Tue, 25 Apr 2017 14:29:39 +0000 (19:59 +0530)
committerSusant Sahani <susant@redhat.com>
Tue, 25 Apr 2017 14:29:39 +0000 (19:59 +0530)
Probaly this happened during rebase.

src/network/networkd-route.c

index 56f831628caa6bdf240e89c152aef9f6c494aae6..94204bddd023bfc6d0e99d5f1f0bfae40db4671c 100644 (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"))