aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2012-06-11 02:23:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2012-06-11 14:47:23 +0200
commit3f9ab7cf5deb892cc7b8cb3f36322e072898b789 (patch)
tree510e1136cdb1788f9d47ec0dfa4b05f56aceb2bd /lib
parent63e96854702fba7cfa0b3408cd82026a265132b4 (diff)
curl_ntlm_msgs.c: Fixed passwdlen not being used and recalculated
Diffstat (limited to 'lib')
-rw-r--r--lib/curl_ntlm_msgs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c
index e097c40a8..5789a24c7 100644
--- a/lib/curl_ntlm_msgs.c
+++ b/lib/curl_ntlm_msgs.c
@@ -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;