]> granicus.if.org Git - curl/commitdiff
curl_ntlm_msgs.c: Fixed passwdlen not being used and recalculated
authorMarc Hoersken <info@marc-hoersken.de>
Mon, 11 Jun 2012 00:23:00 +0000 (02:23 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 11 Jun 2012 12:47:23 +0000 (14:47 +0200)
lib/curl_ntlm_msgs.c

index e097c40a87b1203d25f6e28b86d3a71c0cdfb90b..5789a24c73e3920d1f70cc48896407e1da2d601e 100644 (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;