From a69a835e967bdd3abc4446006c2007df7f5c95d2 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 8 Dec 2020 18:54:34 +0100 Subject: [PATCH] confile: cleanup clr_config_net_veth_pair() Signed-off-by: Christian Brauner --- src/lxc/confile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 234a99252..580760686 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5326,7 +5326,7 @@ static int clr_config_net_veth_pair(const char *key, struct lxc_conf *lxc_conf, struct lxc_netdev *netdev = data; if (!netdev) - return -1; + return ret_errno(EINVAL); netdev->priv.veth_attr.pair[0] = '\0'; -- 2.47.2