Commit eac49263 authored by David Stevens's avatar David Stevens Committed by Linus Torvalds

[IPV6]: Handle user asking for any device in mcast calls.

parent e6df0656
...@@ -365,7 +365,7 @@ int ip6_mc_source(int add, int omode, struct sock *sk, ...@@ -365,7 +365,7 @@ int ip6_mc_source(int add, int omode, struct sock *sk,
err = -EADDRNOTAVAIL; err = -EADDRNOTAVAIL;
for (pmc=inet6->ipv6_mc_list; pmc; pmc=pmc->next) { for (pmc=inet6->ipv6_mc_list; pmc; pmc=pmc->next) {
if (pmc->ifindex != pgsr->gsr_interface) if (pgsr->gsr_interface && pmc->ifindex != pgsr->gsr_interface)
continue; continue;
if (ipv6_addr_cmp(&pmc->addr, group) == 0) if (ipv6_addr_cmp(&pmc->addr, group) == 0)
break; break;
......
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