]> git.proxmox.com Git - mirror_lxc.git/commitdiff
confile: Fix coverity issue, missing return in get_config_net_veth_vlan_tagged_id
authorThomas Parrott <thomas.parrott@canonical.com>
Tue, 9 Jun 2020 11:01:41 +0000 (12:01 +0100)
committerThomas Parrott <thomas.parrott@canonical.com>
Tue, 9 Jun 2020 11:01:41 +0000 (12:01 +0100)
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/lxc/confile.c

index 3ee2e8847a3eda9713ea167a1573a2554174e365..68403e65e08c31b94d30c6a0a5c2dad9145227c5 100644 (file)
@@ -5906,7 +5906,7 @@ static int get_config_net_veth_vlan_tagged_id(const char *key, char *retv, int i
        struct lxc_netdev *netdev = data;
 
        if (!netdev)
-               ret_errno(EINVAL);
+               return ret_errno(EINVAL);
 
        if (netdev->type != LXC_NET_VETH)
                return 0;