chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nspawn: newer kernels (>= 3.14) allow resetting the audit loginuid, make use of this
[elogind.git]
/
src
/
network
/
networkd-route.c
diff --git
a/src/network/networkd-route.c
b/src/network/networkd-route.c
index 488d3f5013719bac0be8a34fe11a2a73778eb099..29ee1045da55ed7c6b067b180c980faf960a53eb 100644
(file)
--- a/
src/network/networkd-route.c
+++ b/
src/network/networkd-route.c
@@
-47,6
+47,8
@@
int route_new_static(Network *network, unsigned section, Route **ret) {
if (!route)
return -ENOMEM;
+ route->family = AF_UNSPEC;
+
route->network = network;
LIST_PREPEND(static_routes, network->static_routes, route);
@@
-69,6
+71,8
@@
int route_new_dynamic(Route **ret) {
if (!route)
return -ENOMEM;
+ route->family = AF_UNSPEC;
+
*ret = route;
route = NULL;