summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2016-05-27 11:42:58 -0700
committerJeremy Allison <jra@samba.org>2016-05-29 05:37:12 +0200
commitb5f1ce892a4f8b589aea21b89c2bf93c028fbbe7 (patch)
treef96b7e440773ae3ea81c6b1fb64f907100d443d3 /source3
parent227b35ac96c6f78f52f885deb668fabaa40cf9d6 (diff)
downloadsamba-b5f1ce892a4f8b589aea21b89c2bf93c028fbbe7.tar.gz
s3: lib: ldap: Use struct sockaddr_storage to cope with IPv6.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/smbldap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index 5a876e019e8..e9cc48b939f 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -1040,7 +1040,7 @@ static int smbldap_open(struct smbldap_state *ldap_state)
#ifdef HAVE_UNIXSOCKET
struct sockaddr_un addr;
#else
- struct sockaddr addr;
+ struct sockaddr_storage addr;
#endif
socklen_t len = sizeof(addr);
int sd;