diff options
Diffstat (limited to 'net/sctp/endpointola.c')
-rw-r--r-- | net/sctp/endpointola.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c index 7c781d663603..c543f3250645 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, | |||
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); | ||
233 | 231 | ||
234 | sctp_read_lock(&ep->base.addr_lock); | 232 | sctp_read_lock(&ep->base.addr_lock); |
235 | if (ep->base.bind_addr.port == laddr->v4.sin_port) { | 233 | if (htons(ep->base.bind_addr.port) == laddr->v4.sin_port) { |
236 | if (sctp_bind_addr_match(&ep->base.bind_addr, &tmp, | 234 | if (sctp_bind_addr_match(&ep->base.bind_addr, laddr, |
237 | sctp_sk(ep->base.sk))) { | 235 | sctp_sk(ep->base.sk))) { |
238 | retval = ep; | 236 | retval = ep; |
239 | goto out; | 237 | goto out; |