summaryrefslogtreecommitdiffstats
path: root/net/sctp/endpointola.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 17:08:09 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-02 21:26:40 -0800
commit1c7d1fc14974f44809b22521bd9796411d8ba440 (patch)
tree11e7c6f95ca995ccb7941adc5912ee82eb52b130 /net/sctp/endpointola.c
parentc9a08505ec0a0260fc94a823c014cc3970f72d25 (diff)
downloadop-kernel-dev-1c7d1fc14974f44809b22521bd9796411d8ba440.zip
op-kernel-dev-1c7d1fc14974f44809b22521bd9796411d8ba440.tar.gz
[SCTP]: Switch sctp_endpoint_is_match() to net-endian.
The only caller (__sctp_rcv_lookup_endpoint()) also switched, its caller 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/endpointola.c')
-rw-r--r--net/sctp/endpointola.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c
index 7c781d6..c543f32 100644
--- a/net/sctp/endpointola.c
+++ b/net/sctp/endpointola.c
@@ -228,12 +228,10 @@ struct sctp_endpoint *sctp_endpoint_is_match(struct sctp_endpoint *ep,
const union sctp_addr *laddr)
{
struct sctp_endpoint *retval;
- union sctp_addr tmp;
- flip_to_n(&tmp, laddr);
sctp_read_lock(&ep->base.addr_lock);
- if (ep->base.bind_addr.port == laddr->v4.sin_port) {
- if (sctp_bind_addr_match(&ep->base.bind_addr, &tmp,
+ if (htons(ep->base.bind_addr.port) == laddr->v4.sin_port) {
+ if (sctp_bind_addr_match(&ep->base.bind_addr, laddr,
sctp_sk(ep->base.sk))) {
retval = ep;
goto out;
OpenPOWER on IntegriCloud