Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67074
b: refs/heads/master
c: 4953f0f
h: refs/heads/master
v: v3
  • Loading branch information
Brian Haley authored and David S. Miller committed Oct 11, 2007
1 parent 298f16a commit 7fdfa68
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73aaf9355b71d295fd72dc0b93fcdd275c56648f
refs/heads/master: 4953f0fcc06a125f87874743d968c0e185c8b296
13 changes: 8 additions & 5 deletions trunk/net/ipv6/ipv6_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,15 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname,
case IPV6_MULTICAST_IF:
if (sk->sk_type == SOCK_STREAM)
goto e_inval;
if (sk->sk_bound_dev_if && sk->sk_bound_dev_if != val)
goto e_inval;

if (__dev_get_by_index(&init_net, val) == NULL) {
retv = -ENODEV;
break;
if (val) {
if (sk->sk_bound_dev_if && sk->sk_bound_dev_if != val)
goto e_inval;

if (__dev_get_by_index(&init_net, val) == NULL) {
retv = -ENODEV;
break;
}
}
np->mcast_oif = val;
retv = 0;
Expand Down

0 comments on commit 7fdfa68

Please sign in to comment.