]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
digest: clear target buffer
authorDaniel Stenberg <daniel@haxx.se>
Wed, 22 Mar 2023 12:10:45 +0000 (13:10 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Mar 2023 08:24:59 +0000 (09:24 +0100)
Closes #10814

lib/vauth/digest.c

index b7a0d92a316339fb2d97eb16188907208cfe9f8e..fda2d911f7b12034ab5b8ab33ad58f67fc7e5777 100644 (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;