mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05:00
http_digest: Fixed auth retry loop when SSPI based authentication fails
This commit is contained in:
parent
500d2db302
commit
cfe4252744
@ -291,8 +291,10 @@ CURLcode Curl_sasl_decode_digest_http_message(const char *chlg,
|
|||||||
{
|
{
|
||||||
size_t chlglen = strlen(chlg);
|
size_t chlglen = strlen(chlg);
|
||||||
|
|
||||||
/* Clean up any former leftovers and initialise to defaults */
|
/* We had an input token before and we got another one now. This means we
|
||||||
Curl_sasl_digest_cleanup(digest);
|
provided bad credentials in the previous request. */
|
||||||
|
if(digest->input_token)
|
||||||
|
return CURLE_BAD_CONTENT_ENCODING;
|
||||||
|
|
||||||
/* Simply store the challenge for use later */
|
/* Simply store the challenge for use later */
|
||||||
digest->input_token = (BYTE *) Curl_memdup(chlg, chlglen);
|
digest->input_token = (BYTE *) Curl_memdup(chlg, chlglen);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user