fixup make auth_digest_string_quoted handle "" input like before

This commit is contained in:
Daniel Stenberg 2026-01-14 09:53:18 +01:00
parent ab96ead468
commit 271bf6b55b
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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 == '\\') {