[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:
@ -307,12 +307,10 @@ int sctp_bind_addr_match(struct sctp_bind_addr *bp,
|
||||
{
|
||||
struct sctp_sockaddr_entry *laddr;
|
||||
struct list_head *pos;
|
||||
union sctp_addr tmp;
|
||||
|
||||
flip_to_n(&tmp, addr);
|
||||
list_for_each(pos, &bp->address_list) {
|
||||
laddr = list_entry(pos, struct sctp_sockaddr_entry, list);
|
||||
if (opt->pf->cmp_addr(&laddr->a, &tmp, opt))
|
||||
if (opt->pf->cmp_addr(&laddr->a, addr, opt))
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user