diff options
-rw-r--r-- | source3/lib/ctdbd_conn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 9d2b544928..95dda5258b 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -1641,7 +1641,7 @@ static void smbd_ctdb_canonicalize_ip(const struct sockaddr_storage *in, #endif out4->sin_family = AF_INET; out4->sin_port = in6->sin6_port; - memcpy(&out4->sin_addr, &in6->sin6_addr.s6_addr32[3], 4); + memcpy(&out4->sin_addr, &in6->sin6_addr.s6_addr[12], 4); } } #endif |