From: Christian Brauner Date: Wed, 9 Dec 2020 08:27:34 +0000 (+0100) Subject: confile: cleanup get_config_net_script_down() X-Git-Tag: lxc-5.0.0~330^2~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1bf5d72ec4cf6053b2035573d532b24b44b4ce1;p=thirdparty%2Flxc.git confile: cleanup get_config_net_script_down() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 47bcbba24..1a89f78e7 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5912,7 +5912,7 @@ static int get_config_net_script_down(const char *key, char *retv, int inlen, memset(retv, 0, inlen); if (!netdev) - return -1; + return ret_errno(EINVAL); if (netdev->downscript) strprint(retv, inlen, "%s", netdev->downscript);