diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:11:50 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:50 -0500 |
commit | 6c7be55ca0c204473d07a030a03c49a7471b4508 (patch) | |
tree | d1dd7c14a0b723523834ecc09199fbfe9e50139f /net/sctp/input.c | |
parent | cd4ff034e3572679f7ff8f126469b3addd1a4fbc (diff) |
[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>
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r-- | net/sctp/input.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index 2d660f8d94fd..33111873a488 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -872,11 +872,8 @@ int sctp_has_association(const union sctp_addr *laddr, | |||
872 | { | 872 | { |
873 | struct sctp_association *asoc; | 873 | struct sctp_association *asoc; |
874 | struct sctp_transport *transport; | 874 | struct sctp_transport *transport; |
875 | union sctp_addr tmp, tmp2; | ||
876 | flip_to_n(&tmp, laddr); | ||
877 | flip_to_n(&tmp2, paddr); | ||
878 | 875 | ||
879 | if ((asoc = sctp_lookup_association(&tmp, &tmp2, &transport))) { | 876 | if ((asoc = sctp_lookup_association(laddr, paddr, &transport))) { |
880 | sctp_association_put(asoc); | 877 | sctp_association_put(asoc); |
881 | return 1; | 878 | return 1; |
882 | } | 879 | } |