Commit 3f9ab7cf authored by Marc Hoersken's avatar Marc Hoersken Committed by Daniel Stenberg
Browse files

curl_ntlm_msgs.c: Fixed passwdlen not being used and recalculated

parent 63e96854
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;