Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41824
b: refs/heads/master
c: 6c7be55
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Dec 3, 2006
1 parent 4d39495 commit fa87632
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 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: cd4ff034e3572679f7ff8f126469b3addd1a4fbc
refs/heads/master: 6c7be55ca0c204473d07a030a03c49a7471b4508
2 changes: 1 addition & 1 deletion trunk/net/sctp/endpointola.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ int sctp_endpoint_is_peeled_off(struct sctp_endpoint *ep,
bp = &ep->base.bind_addr;
list_for_each(pos, &bp->address_list) {
addr = list_entry(pos, struct sctp_sockaddr_entry, list);
if (sctp_has_association(&addr->a_h, paddr)) {
if (sctp_has_association(&addr->a, paddr)) {
sctp_read_unlock(&ep->base.addr_lock);
return 1;
}
Expand Down
5 changes: 1 addition & 4 deletions trunk/net/sctp/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,11 +872,8 @@ int sctp_has_association(const union sctp_addr *laddr,
{
struct sctp_association *asoc;
struct sctp_transport *transport;
union sctp_addr tmp, tmp2;
flip_to_n(&tmp, laddr);
flip_to_n(&tmp2, paddr);

if ((asoc = sctp_lookup_association(&tmp, &tmp2, &transport))) {
if ((asoc = sctp_lookup_association(laddr, paddr, &transport))) {
sctp_association_put(asoc);
return 1;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/sctp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ static int __sctp_connect(struct sock* sk,
* make sure that there is no peeled-off association matching
* the peer address even on another socket.
*/
if (sctp_endpoint_is_peeled_off(ep, &to)) {
if (sctp_endpoint_is_peeled_off(ep, sa_addr)) {
err = -EADDRNOTAVAIL;
goto out_free;
}
Expand Down Expand Up @@ -1475,7 +1475,7 @@ SCTP_STATIC int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,
*/
if ((sctp_style(sk, TCP) &&
sctp_sstate(sk, ESTABLISHED)) ||
sctp_endpoint_is_peeled_off(ep, &to)) {
sctp_endpoint_is_peeled_off(ep, &tmp)) {
err = -EADDRNOTAVAIL;
goto out_unlock;
}
Expand Down

0 comments on commit fa87632

Please sign in to comment.