From 3f9ab7cf5deb892cc7b8cb3f36322e072898b789 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Mon, 11 Jun 2012 02:23:00 +0200 Subject: [PATCH] curl_ntlm_msgs.c: Fixed passwdlen not being used and recalculated --- lib/curl_ntlm_msgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;