Commit 7ddc8f24 by Daniel Lezcano

fix return code

Return a negative instead of a positive value. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 79881dc6
...@@ -746,7 +746,7 @@ static int ip_addr_add(int family, int ifindex, ...@@ -746,7 +746,7 @@ static int ip_addr_add(int family, int ifindex,
goto out; goto out;
/* TODO : multicast, anycast with ipv6 */ /* TODO : multicast, anycast with ipv6 */
err = EPROTONOSUPPORT; err = -EPROTONOSUPPORT;
if (family == AF_INET6 && if (family == AF_INET6 &&
(memcmp(bcast, &in6addr_any, sizeof(in6addr_any)) || (memcmp(bcast, &in6addr_any, sizeof(in6addr_any)) ||
memcmp(acast, &in6addr_any, sizeof(in6addr_any)))) memcmp(acast, &in6addr_any, sizeof(in6addr_any))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment