ntlm: clear lm and nt response buffers before use

To avoid the risk of MemorySanitizer: use-of-uninitialized-value

Closes #10814
This commit is contained in:
Daniel Stenberg 2023-03-22 13:31:11 +01:00
parent 955e2769f7
commit 0c2fcb0f60
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -511,6 +511,8 @@ CURLcode Curl_auth_create_ntlm_type3_message(struct Curl_easy *data,
size_t userlen = 0;
size_t domlen = 0;
memset(lmresp, 0, sizeof(lmresp));
memset(ntresp, 0, sizeof(ntresp));
user = strchr(userp, '\\');
if(!user)
user = strchr(userp, '/');