mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
5f242a13e8
commit
7e1e4a2b9d
4 changed files with 9 additions and 11 deletions
|
@ -228,10 +228,12 @@ 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, laddr,
|
||||
if (sctp_bind_addr_match(&ep->base.bind_addr, &tmp,
|
||||
sctp_sk(ep->base.sk))) {
|
||||
retval = ep;
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue