]> git.proxmox.com Git - mirror_lxc.git/commitdiff
confile: cleanup get_config_net_flags()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 18:00:39 +0000 (19:00 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 9 Dec 2020 14:01:46 +0000 (15:01 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index c173da7fb288e69837a284906029a071ed4e0f42..229bd3c3aa120e04a71996c22877e10e0589f559 100644 (file)
@@ -5585,7 +5585,7 @@ static int get_config_net_flags(const char *key, char *retv, int inlen,
                memset(retv, 0, inlen);
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        if (netdev->flags & IFF_UP)
                strprint(retv, inlen, "up");