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,6 +658,7 @@ CURLcode Curl_ntlm_core_mk_ntlmv2_resp(unsigned char *ntlmv2hash,
|
||||
LONGQUARTET(tw.dwLowDateTime), LONGQUARTET(tw.dwHighDateTime));
|
||||
|
||||
memcpy(ptr + 32, challenge_client, 8);
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user