From 271bf6b55b03e07a051496018cd7d1c3d0a6054f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 14 Jan 2026 09:53:18 +0100 Subject: [PATCH] fixup make auth_digest_string_quoted handle "" input like before --- lib/vauth/digest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/vauth/digest.c b/lib/vauth/digest.c index e4446a529f..790240837b 100644 --- a/lib/vauth/digest.c +++ b/lib/vauth/digest.c @@ -152,6 +152,8 @@ static char *auth_digest_string_quoted(const char *s) { struct dynbuf out; curlx_dyn_init(&out, 2048); + if(!*s) /* for zero length input, make sure we return an empty string */ + return curlx_strdup(""); while(*s) { CURLcode result; if(*s == '"' || *s == '\\') {