diff --git a/src/lxc/network.c b/src/lxc/network.c index 6e7004dfb..38c7a75ba 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -666,6 +666,8 @@ static int instantiate_phys(struct lxc_handler *handler, struct lxc_netdev *netd return -1; } + strlcpy(netdev->created_name, netdev->link, IFNAMSIZ); + /* * Store the ifindex of the host's network device in the host's * namespace.