Skip to content
Snippets Groups Projects
Commit 44ad532b authored by Joe Perches's avatar Joe Perches Committed by David Teigland
Browse files

dlm: use ipv6_addr_copy


Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 305a47b1
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@
#include <linux/mutex.h>
#include <linux/sctp.h>
#include <net/sctp/user.h>
#include <net/ipv6.h>
#include "dlm_internal.h"
#include "lowcomms.h"
......@@ -250,8 +251,7 @@ static int nodeid_to_addr(int nodeid, struct sockaddr *retaddr)
} else {
struct sockaddr_in6 *in6 = (struct sockaddr_in6 *) &addr;
struct sockaddr_in6 *ret6 = (struct sockaddr_in6 *) retaddr;
memcpy(&ret6->sin6_addr, &in6->sin6_addr,
sizeof(in6->sin6_addr));
ipv6_addr_copy(&ret6->sin6_addr, &in6->sin6_addr);
}
return 0;
......
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