diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:05:43 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:33 -0500 |
commit | 7e1e4a2b9dcc63ac3328f786f9d98bde90c8fc6c (patch) | |
tree | f11e2136bfd2af23399b173ddb47ea8d005289fa /net/sctp/bind_addr.c | |
parent | 5f242a13e8505e0f3efd3113da6e029f6e7dfa32 (diff) |
[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>
Diffstat (limited to 'net/sctp/bind_addr.c')
-rw-r--r-- | net/sctp/bind_addr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c index 9085e531d575..442d891f68ea 100644 --- a/net/sctp/bind_addr.c +++ b/net/sctp/bind_addr.c | |||
@@ -307,12 +307,10 @@ int sctp_bind_addr_match(struct sctp_bind_addr *bp, | |||
307 | { | 307 | { |
308 | struct sctp_sockaddr_entry *laddr; | 308 | struct sctp_sockaddr_entry *laddr; |
309 | struct list_head *pos; | 309 | struct list_head *pos; |
310 | union sctp_addr tmp; | ||
311 | 310 | ||
312 | flip_to_n(&tmp, addr); | ||
313 | list_for_each(pos, &bp->address_list) { | 311 | list_for_each(pos, &bp->address_list) { |
314 | laddr = list_entry(pos, struct sctp_sockaddr_entry, list); | 312 | laddr = list_entry(pos, struct sctp_sockaddr_entry, list); |
315 | if (opt->pf->cmp_addr(&laddr->a, &tmp, opt)) | 313 | if (opt->pf->cmp_addr(&laddr->a, addr, opt)) |
316 | return 1; | 314 | return 1; |
317 | } | 315 | } |
318 | 316 | ||