summaryrefslogtreecommitdiffstats
path: root/net/sctp/socket.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 17:05:43 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:26:33 -0800
commit7e1e4a2b9dcc63ac3328f786f9d98bde90c8fc6c (patch)
treef11e2136bfd2af23399b173ddb47ea8d005289fa /net/sctp/socket.c
parent5f242a13e8505e0f3efd3113da6e029f6e7dfa32 (diff)
[SCTP]: Switch sctp_bind_addr_match() to net-endian.
Callers adjusted. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r--net/sctp/socket.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index e03ba9055eb..d42953efa35 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -4635,11 +4635,9 @@ static long sctp_get_port_local(struct sock *sk, union sctp_addr *addr)
{
struct sctp_bind_hashbucket *head; /* hash list */
struct sctp_bind_bucket *pp; /* hash list port iterator */
- union sctp_addr tmp;
unsigned short snum;
int ret;
- flip_to_h(&tmp, addr);
snum = ntohs(addr->v4.sin_port);
SCTP_DEBUG_PRINTK("sctp_get_port() begins, snum=%d\n", snum);
@@ -4737,7 +4735,7 @@ pp_found:
if (reuse && sk2->sk_reuse)
continue;
- if (sctp_bind_addr_match(&ep2->base.bind_addr, &tmp,
+ if (sctp_bind_addr_match(&ep2->base.bind_addr, addr,
sctp_sk(sk))) {
ret = (long)sk2;
goto fail_unlock;