curl_ntlm_msgs.c: Fixed passwdlen not being used and recalculated
This commit is contained in:
		
				
					committed by
					
						
						Daniel Stenberg
					
				
			
			
				
	
			
			
			
						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)
 | 
					    if((ntlm->identity.Password = (unsigned char *)strdup(passwdp)) == NULL)
 | 
				
			||||||
      return CURLE_OUT_OF_MEMORY;
 | 
					      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)
 | 
					    if((ntlm->identity.Domain = malloc(domlen + 1)) == NULL)
 | 
				
			||||||
      return CURLE_OUT_OF_MEMORY;
 | 
					      return CURLE_OUT_OF_MEMORY;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user