mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue