]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup clr_config_net_ipv6_address()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 17:58:25 +0000 (18:58 +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 cf199c986fd6e3ea4bd59b9b391673e982a97832..487e59f234bc1d6fcb3994d7398d3de3e9c93c7d 100644 (file)
@@ -5499,7 +5499,7 @@ static int clr_config_net_ipv6_address(const char *key,
        struct lxc_list *cur, *next;
 
        if (!netdev)
-               return -1;
+               return ret_errno(EINVAL);
 
        lxc_list_for_each_safe(cur, &netdev->ipv6, next) {
                lxc_list_del(cur);