mirror of
https://github.com/curl/curl.git
synced 2026-07-23 12:27:19 +03:00
parent
b249592d29
commit
f1cd5004b0
1 changed files with 6 additions and 9 deletions
|
|
@ -498,17 +498,14 @@ CURLcode Curl_ntlm_core_mk_nt_hash(struct Curl_easy *data,
|
|||
* network encoding not the host encoding.
|
||||
*/
|
||||
result = Curl_convert_to_network(data, (char *)pw, len * 2);
|
||||
if(result)
|
||||
return result;
|
||||
|
||||
/* Create NT hashed password. */
|
||||
Curl_md4it(ntbuffer, pw, 2 * len);
|
||||
|
||||
memset(ntbuffer + 16, 0, 21 - 16);
|
||||
|
||||
if(!result) {
|
||||
/* Create NT hashed password. */
|
||||
Curl_md4it(ntbuffer, pw, 2 * len);
|
||||
memset(ntbuffer + 16, 0, 21 - 16);
|
||||
}
|
||||
free(pw);
|
||||
|
||||
return CURLE_OK;
|
||||
return result;
|
||||
}
|
||||
|
||||
#if defined(USE_NTLM_V2) && !defined(USE_WINDOWS_SSPI)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue