Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352066
b: refs/heads/master
c: 56db1c5
h: refs/heads/master
v: v3
  • Loading branch information
Jean Sacren authored and David S. Miller committed Feb 4, 2013
1 parent 1593e1b commit 4e7b7d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 25cc4ae913a46bcc11b03c37bec59568f2122a36
refs/heads/master: 56db1c5f41c2ed0300ca570fea279a7c189c18fb
6 changes: 2 additions & 4 deletions trunk/net/ipv6/mcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,11 +427,9 @@ int ip6_mc_source(int add, int omode, struct sock *sk,
rv = 1; /* > 0 for insert logic below if sl_count is 0 */
for (i=0; i<psl->sl_count; i++) {
rv = !ipv6_addr_equal(&psl->sl_addr[i], source);
if (rv == 0)
break;
if (rv == 0) /* There is an error in the address. */
goto done;
}
if (rv == 0) /* address already there is an error */
goto done;
for (j=psl->sl_count-1; j>=i; j--)
psl->sl_addr[j+1] = psl->sl_addr[j];
psl->sl_addr[i] = *source;
Expand Down

0 comments on commit 4e7b7d5

Please sign in to comment.