diff --git a/src/udp/mcast.c b/src/udp/mcast.c index 14c118860..3513fa506 100644 --- a/src/udp/mcast.c +++ b/src/udp/mcast.c @@ -3,6 +3,8 @@ * * Copyright (C) 2010 Creytiv.com */ +#include + #include #include #include @@ -50,7 +52,7 @@ static int multicast_update(struct udp_sock *us, const struct sa *group, case AF_INET6: mreq6.ipv6mr_multiaddr = group->u.in6.sin6_addr; mreq6.ipv6mr_interface = if_index; - if (if_index = 0) { + if (if_index == 0) { mreq6.ipv6mr_interface = sa_scopeid(group); }