mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05:00
ntlm: explicit type casting
This commit is contained in:
parent
d414f6bf08
commit
6cd5c35509
@ -552,7 +552,7 @@ CURLcode Curl_ntlm_core_mk_nt_hash(struct Curl_easy *data,
|
|||||||
CURLcode result;
|
CURLcode result;
|
||||||
if(len > SIZE_T_MAX/2) /* avoid integer overflow */
|
if(len > SIZE_T_MAX/2) /* avoid integer overflow */
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
pw = len ? malloc(len * 2) : strdup("");
|
pw = len ? malloc(len * 2) : (unsigned char *)strdup("");
|
||||||
if(!pw)
|
if(!pw)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user