aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/bind_addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/bind_addr.c')
-rw-r--r--net/sctp/bind_addr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c
index 50f3697625fd..f201df66180d 100644
--- a/net/sctp/bind_addr.c
+++ b/net/sctp/bind_addr.c
@@ -239,8 +239,8 @@ union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp,
239 239
240 list_for_each(pos, &bp->address_list) { 240 list_for_each(pos, &bp->address_list) {
241 addr = list_entry(pos, struct sctp_sockaddr_entry, list); 241 addr = list_entry(pos, struct sctp_sockaddr_entry, list);
242 af = sctp_get_af_specific(addr->a_h.v4.sin_family); 242 af = sctp_get_af_specific(addr->a.v4.sin_family);
243 len = af->to_addr_param(&addr->a_h, &rawaddr); 243 len = af->to_addr_param(&addr->a, &rawaddr);
244 memcpy(addrparms.v, &rawaddr, len); 244 memcpy(addrparms.v, &rawaddr, len);
245 addrparms.v += len; 245 addrparms.v += len;
246 addrparms_len += len; 246 addrparms_len += len;