diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 17:10:38 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-02 21:26:47 -0800 |
commit | 5ab7b859ab58e3479a5a66e383ecd6bc447f6c1d (patch) | |
tree | f876ff7c51eb7d5a2d3fdb8dcb97b6b19d79dde7 /net/sctp/sm_make_chunk.c | |
parent | 4bdf4b5fe22c26750c39fdd2939a5f33df0cc341 (diff) | |
download | linux-5ab7b859ab58e3479a5a66e383ecd6bc447f6c1d.tar.gz linux-5ab7b859ab58e3479a5a66e383ecd6bc447f6c1d.tar.bz2 linux-5ab7b859ab58e3479a5a66e383ecd6bc447f6c1d.zip |
[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.c | 4 |
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: /* 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); } |