[SCTP]: Switch sctp_add_bind_addr() to net-endian.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Al Viro
2006-11-20 17:10:38 -08:00
committed by David S. Miller
parent 4bdf4b5fe2
commit 5ab7b859ab
4 changed files with 15 additions and 12 deletions

View File

@ -1507,7 +1507,9 @@ no_hmac:
/* Also, add the destination address. */
if (list_empty(&retval->base.bind_addr.address_list)) {
sctp_add_bind_addr(&retval->base.bind_addr, &chunk->dest, 1,
union sctp_addr tmp;
flip_to_n(&tmp, &chunk->dest);
sctp_add_bind_addr(&retval->base.bind_addr, &tmp, 1,
GFP_ATOMIC);
}