1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

curl_ntlm_msgs.c: Fixed passwdlen not being used and recalculated

This commit is contained in:
Marc Hoersken 2012-06-11 02:23:00 +02:00 committed by Daniel Stenberg
parent 63e9685470
commit 3f9ab7cf5d

View File

@ -438,7 +438,7 @@ CURLcode Curl_ntlm_create_type1_message(const char *userp,
if((ntlm->identity.Password = (unsigned char *)strdup(passwdp)) == NULL)
return CURLE_OUT_OF_MEMORY;
ntlm->identity.PasswordLength = (unsigned long)strlen(passwdp);
ntlm->identity.PasswordLength = (unsigned long)passwdlen;
if((ntlm->identity.Domain = malloc(domlen + 1)) == NULL)
return CURLE_OUT_OF_MEMORY;