aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/associola.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index a5d7abba89e4..7639044b0074 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -1335,10 +1335,12 @@ int sctp_assoc_lookup_laddr(struct sctp_association *asoc,
1335 const union sctp_addr *laddr) 1335 const union sctp_addr *laddr)
1336{ 1336{
1337 int found; 1337 int found;
1338 union sctp_addr tmp;
1338 1339
1340 flip_to_h(&tmp, laddr);
1339 sctp_read_lock(&asoc->base.addr_lock); 1341 sctp_read_lock(&asoc->base.addr_lock);
1340 if ((asoc->base.bind_addr.port == ntohs(laddr->v4.sin_port)) && 1342 if ((asoc->base.bind_addr.port == ntohs(laddr->v4.sin_port)) &&
1341 sctp_bind_addr_match(&asoc->base.bind_addr, laddr, 1343 sctp_bind_addr_match(&asoc->base.bind_addr, &tmp,
1342 sctp_sk(asoc->base.sk))) { 1344 sctp_sk(asoc->base.sk))) {
1343 found = 1; 1345 found = 1;
1344 goto out; 1346 goto out;