]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
network: Updates netlink_open handling in lxc_ipvlan_create 3435/head
authorThomas Parrott <thomas.parrott@canonical.com>
Tue, 9 Jun 2020 08:18:55 +0000 (09:18 +0100)
committerThomas Parrott <thomas.parrott@canonical.com>
Tue, 9 Jun 2020 08:58:32 +0000 (09:58 +0100)
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/lxc/network.c

index 1c42d347f4e5785a6c98cf3fa804a6427cf4ace9..7c7d521e69992afdfc5496a981782a0ce56610ea 100644 (file)
@@ -748,7 +748,7 @@ static int lxc_ipvlan_create(const char *master, const char *name, int mode, int
 
        err = netlink_open(nlh_ptr, NETLINK_ROUTE);
        if (err)
-               return ret_errno(-err);
+               return err;
 
        nlmsg = nlmsg_alloc(NLMSG_GOOD_SIZE);
        if (!nlmsg)