digest: clear target buffer

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

View file

@ -694,6 +694,7 @@ static CURLcode auth_create_digest_http_message(
char *hashthis = NULL;
char *tmp = NULL;
memset(hashbuf, 0, sizeof(hashbuf));
if(!digest->nc)
digest->nc = 1;