From 737c57e7d4f21d61fd81d107d67996f460ad7e55 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Mon, 20 Nov 2006 17:03:18 -0800 Subject: [PATCH] --- yaml --- r: 41802 b: refs/heads/master c: 30330ee00ce077de9d459c17125573ff618bd7a9 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/sctp/socket.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 7a0c41d94bdb..40e5278f0c66 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0906e20fa03afdb14faf7fd166bfe4ed67c8db55 +refs/heads/master: 30330ee00ce077de9d459c17125573ff618bd7a9 diff --git a/trunk/net/sctp/socket.c b/trunk/net/sctp/socket.c index f4d13ab79f49..b6e038a387c2 100644 --- a/trunk/net/sctp/socket.c +++ b/trunk/net/sctp/socket.c @@ -3217,8 +3217,8 @@ static int sctp_getsockopt_sctp_status(struct sock *sk, int len, status.sstat_outstrms = asoc->c.sinit_num_ostreams; status.sstat_fragmentation_point = asoc->frag_point; status.sstat_primary.spinfo_assoc_id = sctp_assoc2id(transport->asoc); - memcpy(&status.sstat_primary.spinfo_address, - &(transport->ipaddr), sizeof(union sctp_addr)); + flip_to_n((union sctp_addr *)&status.sstat_primary.spinfo_address, + &transport->ipaddr); /* Map ipv4 address into v4-mapped-on-v6 address. */ sctp_get_pf_specific(sk->sk_family)->addr_v4map(sctp_sk(sk), (union sctp_addr *)&status.sstat_primary.spinfo_address);