1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

ntlm: explicit type casting

This commit is contained in:
lufia 2019-03-26 22:23:28 +09:00 committed by Daniel Stenberg
parent d414f6bf08
commit 6cd5c35509
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -552,7 +552,7 @@ CURLcode Curl_ntlm_core_mk_nt_hash(struct Curl_easy *data,
CURLcode result;
if(len > SIZE_T_MAX/2) /* avoid integer overflow */
return CURLE_OUT_OF_MEMORY;
pw = len ? malloc(len * 2) : strdup("");
pw = len ? malloc(len * 2) : (unsigned char *)strdup("");
if(!pw)
return CURLE_OUT_OF_MEMORY;