summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-02-06 16:53:22 +0100
committerVolker Lendecke <vl@samba.org>2012-02-06 20:03:58 +0100
commit5fb578ee09b74c6ffa7a7ab660cc6e36fd13daef (patch)
treeebbb40ab26b484564049cdb0e900f655ef201b45 /source3/lib
parent98210e25e5143cec30b1e4d7a981451a6232f913 (diff)
downloadsamba-5fb578ee09b74c6ffa7a7ab660cc6e36fd13daef.tar.gz
samba-5fb578ee09b74c6ffa7a7ab660cc6e36fd13daef.tar.bz2
samba-5fb578ee09b74c6ffa7a7ab660cc6e36fd13daef.zip
s3: FreeBSD does not define sin6_addr.s_addr32
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 6 20:03:58 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ctdbd_conn.c2
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