aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_make_chunk.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 20:10:38 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:26:47 -0500
commit5ab7b859ab58e3479a5a66e383ecd6bc447f6c1d (patch)
treef876ff7c51eb7d5a2d3fdb8dcb97b6b19d79dde7 /net/sctp/sm_make_chunk.c
parent4bdf4b5fe22c26750c39fdd2939a5f33df0cc341 (diff)
[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>
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r--net/sctp/sm_make_chunk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c
index 2c887d3f3911..46cfcca5e41b 100644
--- a/net/sctp/sm_make_chunk.c
+++ b/net/sctp/sm_make_chunk.c
@@ -1507,7 +1507,9 @@ no_hmac:
1507 1507
1508 /* Also, add the destination address. */ 1508 /* Also, add the destination address. */
1509 if (list_empty(&retval->base.bind_addr.address_list)) { 1509 if (list_empty(&retval->base.bind_addr.address_list)) {
1510 sctp_add_bind_addr(&retval->base.bind_addr, &chunk->dest, 1, 1510 union sctp_addr tmp;
1511 flip_to_n(&tmp, &chunk->dest);
1512 sctp_add_bind_addr(&retval->base.bind_addr, &tmp, 1,
1511 GFP_ATOMIC); 1513 GFP_ATOMIC);
1512 } 1514 }
1513 1515