summaryrefslogtreecommitdiff
path: root/src/network/networkd-route.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-route.c')
-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 d0a04ecfee..acfe3f023f 100644
--- a/src/network/networkd-route.c
+++ b/src/network/networkd-route.c
@@ -164,6 +164,8 @@ int route_drop(Route *route, Link *link,
return r;
}
+ link_ref(link);
+
return 0;
}
@@ -235,6 +237,8 @@ int route_configure(Route *route, Link *link,
return r;
}
+ link_ref(link);
+
return 0;
}