]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup get_config_net_script_up()
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 9 Dec 2020 08:27:06 +0000 (09:27 +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 5d043d82b1b059718395654fa6d7a34dcb691cd0..47bcbba247a5e550cfd2dba74a8db5b1245dc1ba 100644 (file)
@@ -5891,7 +5891,7 @@ static int get_config_net_script_up(const char *key, char *retv, int inlen,
                memset(retv, 0, inlen);
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        if (netdev->upscript)
                strprint(retv, inlen, "%s", netdev->upscript);