diff options
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r-- | net/sctp/associola.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c index fa7cda4b1813..39471d3b31b9 100644 --- a/net/sctp/associola.c +++ b/net/sctp/associola.c | |||
@@ -733,7 +733,7 @@ void sctp_assoc_control_transport(struct sctp_association *asoc, | |||
733 | * user. | 733 | * user. |
734 | */ | 734 | */ |
735 | memset(&addr, 0, sizeof(struct sockaddr_storage)); | 735 | memset(&addr, 0, sizeof(struct sockaddr_storage)); |
736 | flip_to_n((union sctp_addr *)&addr, &transport->ipaddr_h); | 736 | memcpy(&addr, &transport->ipaddr, transport->af_specific->sockaddr_len); |
737 | event = sctp_ulpevent_make_peer_addr_change(asoc, &addr, | 737 | event = sctp_ulpevent_make_peer_addr_change(asoc, &addr, |
738 | 0, spc_state, error, GFP_ATOMIC); | 738 | 0, spc_state, error, GFP_ATOMIC); |
739 | if (event) | 739 | if (event) |