diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 17:07:06 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-02 21:26:37 -0800 |
commit | be29681edfbad72167df735e243e8621840dca4f (patch) | |
tree | efc92cc3520bfc222200d82f561ccb84c9f7c5d0 /net/sctp/endpointola.c | |
parent | 38a03145efcdbbcc60465fdffc0546208a52daf8 (diff) | |
download | linux-3.10-be29681edfbad72167df735e243e8621840dca4f.tar.gz linux-3.10-be29681edfbad72167df735e243e8621840dca4f.tar.bz2 linux-3.10-be29681edfbad72167df735e243e8621840dca4f.zip |
[SCTP]: Switch sctp_assoc_lookup_paddr() to net-endian.
Callers updated.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/endpointola.c')
-rw-r--r-- | net/sctp/endpointola.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index d77fe9232dd..7c781d66360 100644 --- a/net/sctp/endpointola.c +++ b/net/sctp/endpointola.c @@ -259,6 +259,8 @@ static struct sctp_association *__sctp_endpoint_lookup_assoc( int rport; struct sctp_association *asoc; struct list_head *pos; + union sctp_addr tmp; + flip_to_n(&tmp, paddr); rport = paddr->v4.sin_port; @@ -266,7 +268,7 @@ static struct sctp_association *__sctp_endpoint_lookup_assoc( asoc = list_entry(pos, struct sctp_association, asocs); if (rport == asoc->peer.port) { sctp_read_lock(&asoc->base.addr_lock); - *transport = sctp_assoc_lookup_paddr(asoc, paddr); + *transport = sctp_assoc_lookup_paddr(asoc, &tmp); sctp_read_unlock(&asoc->base.addr_lock); if (*transport) |