Skip to content
Snippets Groups Projects
Commit 4fe1d58b authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

sctp/ipv6.c: use ipv6_addr_copy

parent f019a7a5
No related merge requests found
...@@ -97,8 +97,7 @@ static int sctp_inet6addr_event(struct notifier_block *this, unsigned long ev, ...@@ -97,8 +97,7 @@ static int sctp_inet6addr_event(struct notifier_block *this, unsigned long ev,
if (addr) { if (addr) {
addr->a.v6.sin6_family = AF_INET6; addr->a.v6.sin6_family = AF_INET6;
addr->a.v6.sin6_port = 0; addr->a.v6.sin6_port = 0;
memcpy(&addr->a.v6.sin6_addr, &ifa->addr, ipv6_addr_copy(&addr->a.v6.sin6_addr, &ifa->addr);
sizeof(struct in6_addr));
addr->a.v6.sin6_scope_id = ifa->idev->dev->ifindex; addr->a.v6.sin6_scope_id = ifa->idev->dev->ifindex;
addr->valid = 1; addr->valid = 1;
spin_lock_bh(&sctp_local_addr_lock); spin_lock_bh(&sctp_local_addr_lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment