mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 07:38:49 -05:00
ldap: silence clang warning
Use memset() to initialize a structure to avoid LLVM/Clang warning: ldap.c:193:39: warning: missing field 'UserLength' initializer [-Wmissing-field-initializers] Closes https://github.com/curl/curl/pull/1992
This commit is contained in:
parent
ed0b6b18f6
commit
748f5301c0
@ -190,9 +190,11 @@ static int ldap_win_bind_auth(LDAP *server, const char *user,
|
|||||||
const char *passwd, unsigned long authflags)
|
const char *passwd, unsigned long authflags)
|
||||||
{
|
{
|
||||||
ULONG method = 0;
|
ULONG method = 0;
|
||||||
SEC_WINNT_AUTH_IDENTITY cred = { 0, };
|
SEC_WINNT_AUTH_IDENTITY cred;
|
||||||
int rc = LDAP_AUTH_METHOD_NOT_SUPPORTED;
|
int rc = LDAP_AUTH_METHOD_NOT_SUPPORTED;
|
||||||
|
|
||||||
|
memset(&cred, 0, sizeof(cred));
|
||||||
|
|
||||||
#if defined(USE_SPNEGO)
|
#if defined(USE_SPNEGO)
|
||||||
if(authflags & CURLAUTH_NEGOTIATE) {
|
if(authflags & CURLAUTH_NEGOTIATE) {
|
||||||
method = LDAP_AUTH_NEGOTIATE;
|
method = LDAP_AUTH_NEGOTIATE;
|
||||||
|
Loading…
Reference in New Issue
Block a user