diff options
Diffstat (limited to 'net/sctp/sm_statefuns.c')
-rw-r--r-- | net/sctp/sm_statefuns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index 0848309773a5..174acc3c5526 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c | |||
@@ -598,6 +598,7 @@ sctp_disposition_t sctp_sf_do_5_1D_ce(const struct sctp_endpoint *ep, | |||
598 | struct sctp_ulpevent *ev, *ai_ev = NULL; | 598 | struct sctp_ulpevent *ev, *ai_ev = NULL; |
599 | int error = 0; | 599 | int error = 0; |
600 | struct sctp_chunk *err_chk_p; | 600 | struct sctp_chunk *err_chk_p; |
601 | union sctp_addr tmp; | ||
601 | 602 | ||
602 | /* If the packet is an OOTB packet which is temporarily on the | 603 | /* If the packet is an OOTB packet which is temporarily on the |
603 | * control endpoint, respond with an ABORT. | 604 | * control endpoint, respond with an ABORT. |
@@ -665,8 +666,9 @@ sctp_disposition_t sctp_sf_do_5_1D_ce(const struct sctp_endpoint *ep, | |||
665 | */ | 666 | */ |
666 | peer_init = &chunk->subh.cookie_hdr->c.peer_init[0]; | 667 | peer_init = &chunk->subh.cookie_hdr->c.peer_init[0]; |
667 | 668 | ||
669 | flip_to_h(&tmp, &chunk->subh.cookie_hdr->c.peer_addr); | ||
668 | if (!sctp_process_init(new_asoc, chunk->chunk_hdr->type, | 670 | if (!sctp_process_init(new_asoc, chunk->chunk_hdr->type, |
669 | &chunk->subh.cookie_hdr->c.peer_addr, | 671 | &tmp, |
670 | peer_init, GFP_ATOMIC)) | 672 | peer_init, GFP_ATOMIC)) |
671 | goto nomem_init; | 673 | goto nomem_init; |
672 | 674 | ||