aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/sm_make_chunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r--net/sctp/sm_make_chunk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c
index cb8cecd85a2e..b5d4a61ed7a7 100644
--- a/net/sctp/sm_make_chunk.c
+++ b/net/sctp/sm_make_chunk.c
@@ -1031,9 +1031,9 @@ nodata:
1031void sctp_init_addrs(struct sctp_chunk *chunk, union sctp_addr *src, 1031void sctp_init_addrs(struct sctp_chunk *chunk, union sctp_addr *src,
1032 union sctp_addr *dest) 1032 union sctp_addr *dest)
1033{ 1033{
1034 memcpy(&chunk->source_h, src, sizeof(union sctp_addr)); 1034 memcpy(&chunk->source, src, sizeof(union sctp_addr));
1035 flip_to_n(&chunk->source, &chunk->source_h); 1035 flip_to_h(&chunk->source_h, &chunk->source);
1036 memcpy(&chunk->dest, dest, sizeof(union sctp_addr)); 1036 flip_to_h(&chunk->dest, dest);
1037} 1037}
1038 1038
1039/* Extract the source address from a chunk. */ 1039/* Extract the source address from a chunk. */