]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: initialize network struct
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 26 Feb 2021 21:20:36 +0000 (22:20 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 26 Feb 2021 21:20:36 +0000 (22:20 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index eb58779e08f8412f5fba3cf85411e26d9b2b9500..3f5ef1011dbe50d72988252a5cf5747fb5bf98f0 100644 (file)
@@ -312,6 +312,7 @@ static int set_config_net_type(const char *key, const char *value,
                netdev->type = LXC_NET_VETH;
                lxc_list_init(&netdev->priv.veth_attr.ipv4_routes);
                lxc_list_init(&netdev->priv.veth_attr.ipv6_routes);
+               lxc_list_init(&netdev->priv.veth_attr.vlan_tagged_ids);
                if (!lxc_veth_flag_to_mode(netdev->priv.veth_attr.mode))
                        lxc_veth_mode_to_flag(&netdev->priv.veth_attr.mode, "bridge");
        } else if (strequal(value, "macvlan")) {