mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
ntlm: silence ubsan warning about copying from null target_info pointer.
runtime error: null pointer passed as argument 2, which is declared to never be null Closes #9898
This commit is contained in:
parent
1ec3f449fb
commit
5f8351aea3
@ -658,7 +658,8 @@ CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash,
|
|||||||
LONGQUARTET(tw.dwLowDateTime), LONGQUARTET(tw.dwHighDateTime));
|
LONGQUARTET(tw.dwLowDateTime), LONGQUARTET(tw.dwHighDateTime));
|
||||||
|
|
||||||
memcpy(ptr + 32, challenge_client, 8);
|
memcpy(ptr + 32, challenge_client, 8);
|
||||||
memcpy(ptr + 44, ntlm->target_info, ntlm->target_info_len);
|
if(ntlm->target_info_len)
|
||||||
|
memcpy(ptr + 44, ntlm->target_info, ntlm->target_info_len);
|
||||||
|
|
||||||
/* Concatenate the Type 2 challenge with the BLOB and do HMAC MD5 */
|
/* Concatenate the Type 2 challenge with the BLOB and do HMAC MD5 */
|
||||||
memcpy(ptr + 8, &ntlm->nonce[0], 8);
|
memcpy(ptr + 8, &ntlm->nonce[0], 8);
|
||||||
|
Loading…
Reference in New Issue
Block a user