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:
parent
c357349e44
commit
253030c654
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue