git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s3: lib: ldap: Use struct sockaddr_storage to cope with IPv6.
[metze/samba/wip.git]
/
source3
/
lib
/
smbldap.c
diff --git
a/source3/lib/smbldap.c
b/source3/lib/smbldap.c
index 5a876e019e8b2cbdf43153b74f063a939ff0982e..e9cc48b939f60884d4ced817cf59fd505d4058f5 100644
(file)
--- 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;