]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup clr_config_net_ipv4_address()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 17:57:09 +0000 (18:57 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 9 Dec 2020 14:01:45 +0000 (15:01 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index c0f3ca021ffd17b02966ce63572e457c391d6114..197dbeca37d61c3cd512ea7fa14e3ca464e01cb9 100644 (file)
@@ -5450,7 +5450,7 @@ static int clr_config_net_ipv4_address(const char *key,
        struct lxc_list *cur, *next;
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        lxc_list_for_each_safe(cur, &netdev->ipv4, next) {
                lxc_list_del(cur);