diff options
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: | |||
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 | ||