]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: lib: ldap: Use struct sockaddr_storage to cope with IPv6.
authorJeremy Allison <jra@samba.org>
Fri, 27 May 2016 18:42:58 +0000 (11:42 -0700)
committerJeremy Allison <jra@samba.org>
Sun, 29 May 2016 03:37:12 +0000 (05:37 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
source3/lib/smbldap.c

index 5a876e019e8b2cbdf43153b74f063a939ff0982e..e9cc48b939f60884d4ced817cf59fd505d4058f5 100644 (file)
@@ -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;