summaryrefslogtreecommitdiff
path: root/src/network/networkd-vxlan.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-07-07 14:18:26 +0200
committerTom Gundersen <teg@jklm.no>2014-07-07 14:18:33 +0200
commite04468dec04a968c523ee09da7d2163a1d1a5a15 (patch)
tree949b6abac8d015d8fcc9463568c90a3550136daa /src/network/networkd-vxlan.c
parentc081882f07617e56bcbce54105068137e4e0bb52 (diff)
networkd: netdev - add missing refs
Without this, the underlying device would get freed (and hence fail).
Diffstat (limited to 'src/network/networkd-vxlan.c')
-rw-r--r--src/network/networkd-vxlan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkd-vxlan.c b/src/network/networkd-vxlan.c
index 8832024ef1..160459450d 100644
--- a/src/network/networkd-vxlan.c
+++ b/src/network/networkd-vxlan.c
@@ -154,6 +154,8 @@ int netdev_create_vxlan(NetDev *netdev, Link *link, sd_rtnl_message_handler_t ca
return r;
}
+ link_ref(link);
+
log_debug_netdev(netdev, "Creating vxlan netdev: %s",
netdev_kind_to_string(netdev->kind));