diff --git a/lib/vauth/digest.c b/lib/vauth/digest.c index 0c18fdc7ce..9eac840982 100644 --- a/lib/vauth/digest.c +++ b/lib/vauth/digest.c @@ -880,8 +880,9 @@ static CURLcode auth_create_digest_http_message( free(response); return CURLE_OUT_OF_MEMORY; } - tmp = aprintf("%s, opaque=\"%s\"", response, digest->opaque); + tmp = aprintf("%s, opaque=\"%s\"", response, opaque_quoted); free(response); + free(opaque_quoted); if(!tmp) return CURLE_OUT_OF_MEMORY;