mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
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:
parent
955e2769f7
commit
0c2fcb0f60
@ -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, '/');
|
||||
|
Loading…
Reference in New Issue
Block a user