net: context: Fix the multicast address lookup in bind

Because of the change in next commit "net: if: Change
the iface param in net_if_ipv6_maddr_lookup",
we must initialize the network interface to NULL.
Without this the multicast address lookup will fail.

Change-Id: I113b44ce23c5f2ecbbf1698972078f102995e891
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2017-02-09 17:26:00 +02:00
commit 253030c654

View file

@ -445,7 +445,7 @@ int net_context_bind(struct net_context *context, const struct sockaddr *addr,
#if defined(CONFIG_NET_IPV6)
if (addr->family == AF_INET6) {
struct net_if *iface;
struct net_if *iface = NULL;
struct in6_addr *ptr;
struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)addr;
int ret;