diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-04-22 15:50:15 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-04-22 15:50:15 +0000 |
commit | babd260262e4bd41f40b1bdf9391e10b10a5239a (patch) | |
tree | e3a60831701f805ae1e19f4666d0de61b319bd89 /source3/passdb | |
parent | f957f1aeaf08593f1bb6bcb7c1663cc3c44ad21f (diff) | |
download | samba-babd260262e4bd41f40b1bdf9391e10b10a5239a.tar.gz samba-babd260262e4bd41f40b1bdf9391e10b10a5239a.tar.bz2 samba-babd260262e4bd41f40b1bdf9391e10b10a5239a.zip |
This is meant to be initialised to the size of the buffer.
(This used to be commit ca489db7d3d4713401da3627b563af3cbef82c58)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index 741a89da14..8a2378f91b 100644 --- a/source3/passdb/pdb_ldap.c +++ b/source3/passdb/pdb_ldap.c @@ -443,7 +443,7 @@ static int ldapsam_open(struct ldapsam_privates *ldap_state) if ((ldap_state->ldap_struct != NULL) && ((ldap_state->last_ping + LDAPSAM_DONT_PING_TIME) < time(NULL))) { struct sockaddr_un addr; - socklen_t len; + socklen_t len = sizeof(addr); int sd; if (ldap_get_option(ldap_state->ldap_struct, LDAP_OPT_DESC, &sd) == 0 && getpeername(sd, (struct sockaddr *) &addr, &len) < 0) { |