mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
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>
This commit is contained in:
parent
227b35ac96
commit
b5f1ce892a
@ -1040,7 +1040,7 @@ static int smbldap_open(struct smbldap_state *ldap_state)
|
|||||||
#ifdef HAVE_UNIXSOCKET
|
#ifdef HAVE_UNIXSOCKET
|
||||||
struct sockaddr_un addr;
|
struct sockaddr_un addr;
|
||||||
#else
|
#else
|
||||||
struct sockaddr addr;
|
struct sockaddr_storage addr;
|
||||||
#endif
|
#endif
|
||||||
socklen_t len = sizeof(addr);
|
socklen_t len = sizeof(addr);
|
||||||
int sd;
|
int sd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user