aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/endpointola.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 20:05:43 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:26:33 -0500
commit7e1e4a2b9dcc63ac3328f786f9d98bde90c8fc6c (patch)
treef11e2136bfd2af23399b173ddb47ea8d005289fa /net/sctp/endpointola.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/endpointola.c')
-rw-r--r--net/sctp/endpointola.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c
index 75904b037ec6..d77fe9232dd1 100644
--- a/net/sctp/endpointola.c
+++ b/net/sctp/endpointola.c
@@ -228,10 +228,12 @@ struct sctp_endpoint *sctp_endpoint_is_match(struct sctp_endpoint *ep,
228 const union sctp_addr *laddr) 228 const union sctp_addr *laddr)
229{ 229{
230 struct sctp_endpoint *retval; 230 struct sctp_endpoint *retval;
231 union sctp_addr tmp;
232 flip_to_n(&tmp, laddr);
231 233
232 sctp_read_lock(&ep->base.addr_lock); 234 sctp_read_lock(&ep->base.addr_lock);
233 if (ep->base.bind_addr.port == laddr->v4.sin_port) { 235 if (ep->base.bind_addr.port == laddr->v4.sin_port) {
234 if (sctp_bind_addr_match(&ep->base.bind_addr, laddr, 236 if (sctp_bind_addr_match(&ep->base.bind_addr, &tmp,
235 sctp_sk(ep->base.sk))) { 237 sctp_sk(ep->base.sk))) {
236 retval = ep; 238 retval = ep;
237 goto out; 239 goto out;