aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/endpointola.c
diff options
context:
space:
mode:
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 d77fe9232dd1..7c781d663603 100644
--- a/net/sctp/endpointola.c
+++ b/net/sctp/endpointola.c
@@ -259,6 +259,8 @@ static struct sctp_association *__sctp_endpoint_lookup_assoc(
259 int rport; 259 int rport;
260 struct sctp_association *asoc; 260 struct sctp_association *asoc;
261 struct list_head *pos; 261 struct list_head *pos;
262 union sctp_addr tmp;
263 flip_to_n(&tmp, paddr);
262 264
263 rport = paddr->v4.sin_port; 265 rport = paddr->v4.sin_port;
264 266
@@ -266,7 +268,7 @@ static struct sctp_association *__sctp_endpoint_lookup_assoc(
266 asoc = list_entry(pos, struct sctp_association, asocs); 268 asoc = list_entry(pos, struct sctp_association, asocs);
267 if (rport == asoc->peer.port) { 269 if (rport == asoc->peer.port) {
268 sctp_read_lock(&asoc->base.addr_lock); 270 sctp_read_lock(&asoc->base.addr_lock);
269 *transport = sctp_assoc_lookup_paddr(asoc, paddr); 271 *transport = sctp_assoc_lookup_paddr(asoc, &tmp);
270 sctp_read_unlock(&asoc->base.addr_lock); 272 sctp_read_unlock(&asoc->base.addr_lock);
271 273
272 if (*transport) 274 if (*transport)