aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ipv6.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r--net/sctp/ipv6.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index e533970fa335..8ebd177296ba 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -332,10 +332,11 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist,
332 /* Add the address to the local list. */ 332 /* Add the address to the local list. */
333 addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC); 333 addr = t_new(struct sctp_sockaddr_entry, GFP_ATOMIC);
334 if (addr) { 334 if (addr) {
335 addr->a_h.v6.sin6_family = AF_INET6; 335 addr->a.v6.sin6_family = AF_INET6;
336 addr->a_h.v6.sin6_port = 0; 336 addr->a.v6.sin6_port = 0;
337 addr->a_h.v6.sin6_addr = ifp->addr; 337 addr->a.v6.sin6_addr = ifp->addr;
338 addr->a_h.v6.sin6_scope_id = dev->ifindex; 338 addr->a.v6.sin6_scope_id = dev->ifindex;
339 addr->a_h = addr->a;
339 INIT_LIST_HEAD(&addr->list); 340 INIT_LIST_HEAD(&addr->list);
340 list_add_tail(&addr->list, addrlist); 341 list_add_tail(&addr->list, addrlist);
341 } 342 }