]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup get_config_net_vlan_id()
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 9 Dec 2020 08:28:24 +0000 (09:28 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 9 Dec 2020 14:01:47 +0000 (15:01 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 3d7a54ee6ed5f0ddcaf1d713f23973981030709f..c15934812d8f736b14b25989ec137a9172347d5f 100644 (file)
@@ -5975,7 +5975,7 @@ static int get_config_net_vlan_id(const char *key, char *retv, int inlen,
                memset(retv, 0, inlen);
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        if (netdev->type != LXC_NET_VLAN)
                return 0;