From 955e2769f7864899b500827acde7ddc1f0ba6784 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 22 Mar 2023 13:10:45 +0100 Subject: [PATCH] digest: clear target buffer Closes #10814 --- lib/vauth/digest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vauth/digest.c b/lib/vauth/digest.c index b7a0d92a31..fda2d911f7 100644 --- a/lib/vauth/digest.c +++ b/lib/vauth/digest.c @@ -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;