summaryrefslogtreecommitdiff
path: root/src/network/networkd-dummy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-dummy.c')
-rw-r--r--src/network/networkd-dummy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-dummy.c b/src/network/networkd-dummy.c
index 5232524df7..80fe41b0b7 100644
--- a/src/network/networkd-dummy.c
+++ b/src/network/networkd-dummy.c
@@ -112,6 +112,8 @@ int netdev_create_dummy(NetDev *netdev, sd_rtnl_message_handler_t callback) {
return r;
}
+ netdev_ref(netdev);
+
log_debug_netdev(netdev, "Creating dummy netdev.");
netdev->state = NETDEV_STATE_CREATING;