mirror of
https://github.com/curl/curl.git
synced 2026-07-23 21:47:34 +03:00
sasl: Fixed HTTP digest challenges with spaces between auth parameters
Broken as part of the rework, in commit 7e6d51a73c, to assist with the
addition of HTTP digest via Windows SSPI.
This commit is contained in:
parent
f697d7fdd5
commit
259f4f3d01
1 changed files with 4 additions and 0 deletions
|
|
@ -746,6 +746,10 @@ CURLcode Curl_sasl_decode_digest_http_message(const char *chlg,
|
|||
char value[DIGEST_MAX_VALUE_LENGTH];
|
||||
char content[DIGEST_MAX_CONTENT_LENGTH];
|
||||
|
||||
/* Pass all additional spaces here */
|
||||
while(*chlg && ISSPACE(*chlg))
|
||||
chlg++;
|
||||
|
||||
/* Extract a value=content pair */
|
||||
if(!sasl_digest_get_pair(chlg, value, content, &chlg)) {
|
||||
if(Curl_raw_equal(value, "nonce")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue