]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup clr_config_net_flags()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 17:52:27 +0000 (18:52 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 9 Dec 2020 14:01:43 +0000 (15:01 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 9856ee9b84ef4f4ed39c69ac7cdd73c678565625..0ed8c125961d3e7bb450d35280553757d09979f6 100644 (file)
@@ -5223,7 +5223,7 @@ static int clr_config_net_flags(const char *key, struct lxc_conf *lxc_conf,
        struct lxc_netdev *netdev = data;
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        netdev->flags = 0;