[SCTP]: sctp_has_association() switched to net-endian.
Ditto for its only caller (sctp_endpoint_is_peeled_off) Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cd4ff034e3
commit
6c7be55ca0
3 changed files with 4 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue