Skip to content

Commit

Permalink
dlm: use ipv6_addr_copy
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David Teigland <teigland@redhat.com>
  • Loading branch information
Joe Perches authored and David Teigland committed Jan 28, 2009
1 parent 305a47b commit 44ad532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/dlm/lowcomms.c
Original file line number Diff line number Diff line change
@@ -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 comments on commit 44ad532

Please sign in to comment.