summaryrefslogtreecommitdiff
path: root/lib/ldap.c
diff options
context:
space:
mode:
authorng0 <ng0@infotropique.org>2017-10-24 16:52:22 +0000
committerng0 <ng0@infotropique.org>2017-10-24 16:52:22 +0000
commit8252aa305004041b46e93e5f8b64dfee86ff78f8 (patch)
tree5bad91fb9964c0edb1cdf32db411c63ad937c13e /lib/ldap.c
parentdc0683b6404f7204c2ad98fb77f92b00c0116525 (diff)
parentc514af5a4f5ac3ce724065cc6a8e009373436f78 (diff)
downloadgnurl-8252aa305004041b46e93e5f8b64dfee86ff78f8.tar.gz
gnurl-8252aa305004041b46e93e5f8b64dfee86ff78f8.tar.bz2
gnurl-8252aa305004041b46e93e5f8b64dfee86ff78f8.zip
Merge tag 'curl-7_56_1' of https://github.com/curl/curl
curl 7.56.1
Diffstat (limited to 'lib/ldap.c')
-rw-r--r--lib/ldap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 4059d5d87..7f4f4dd76 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -190,9 +190,11 @@ static int ldap_win_bind_auth(LDAP *server, const char *user,
const char *passwd, unsigned long authflags)
{
ULONG method = 0;
- SEC_WINNT_AUTH_IDENTITY cred = { 0, };
+ SEC_WINNT_AUTH_IDENTITY cred;
int rc = LDAP_AUTH_METHOD_NOT_SUPPORTED;
+ memset(&cred, 0, sizeof(cred));
+
#if defined(USE_SPNEGO)
if(authflags & CURLAUTH_NEGOTIATE) {
method = LDAP_AUTH_NEGOTIATE;