]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
network: Fixes vlan hook script 2954/head
authortomponline <thomas.parrott@canonical.com>
Mon, 29 Apr 2019 08:44:57 +0000 (09:44 +0100)
committertomponline <thomas.parrott@canonical.com>
Mon, 29 Apr 2019 08:44:57 +0000 (09:44 +0100)
Signed-off-by: tomponline <thomas.parrott@canonical.com>
src/lxc/network.c

index b49aae68cb1eb09cd4dd96967fb69debbb7d2ae5..08986863316722f8a8a30e5ac7c9d5cbacb47169 100644 (file)
@@ -307,9 +307,10 @@ static int instantiate_vlan(struct lxc_handler *handler, struct lxc_netdev *netd
                err = run_script_argv(handler->name,
                                handler->conf->hooks_version, "net",
                                netdev->upscript, "up", argv);
-               if (err < 0)
+               if (err < 0) {
                        lxc_netdev_delete_by_name(peer);
                        return -1;
+               }
        }
 
        DEBUG("Instantiated vlan \"%s\" with ifindex is \"%d\" (vlan1000)",