summaryrefslogtreecommitdiff
path: root/src/network/networkd-veth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-veth.c')
-rw-r--r--src/network/networkd-veth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-veth.c b/src/network/networkd-veth.c
index 3584981cbc..3eac90ba90 100644
--- a/src/network/networkd-veth.c
+++ b/src/network/networkd-veth.c
@@ -145,6 +145,8 @@ int netdev_create_veth(NetDev *netdev, sd_rtnl_message_handler_t callback) {
return r;
}
+ netdev_ref(netdev);
+
log_debug_netdev(netdev, "Creating veth netdev: %s",
netdev_kind_to_string(netdev->kind));