]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix return code
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 7 Jun 2010 12:31:56 +0000 (14:31 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Mon, 7 Jun 2010 12:31:56 +0000 (14:31 +0200)
Return a negative instead of a positive value.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/network.c

index 6cd5b87d35f00920dc84cb4078d410c6e448866f..b691dd6a5e87e2f8bea62e14f865c47a7b9dc5e3 100644 (file)
@@ -746,7 +746,7 @@ static int ip_addr_add(int family, int ifindex,
                goto out;
 
        /* TODO : multicast, anycast with ipv6 */
-       err = EPROTONOSUPPORT;
+       err = -EPROTONOSUPPORT;
        if (family == AF_INET6 &&
            (memcmp(bcast, &in6addr_any, sizeof(in6addr_any)) ||
             memcmp(acast, &in6addr_any, sizeof(in6addr_any))))