mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 14:05:03 -05:00
curl_ntlm_msgs.c: Fixed passwdlen not being used and recalculated
This commit is contained in:
parent
63e9685470
commit
3f9ab7cf5d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user