mirror of
https://github.com/curl/curl.git
synced 2026-07-24 13:07:16 +03:00
digest: reject broken header with session protocol but without qop
Closes #9077
This commit is contained in:
parent
b6dd849fa3
commit
3fe24ea322
1 changed files with 4 additions and 0 deletions
|
|
@ -637,6 +637,10 @@ CURLcode Curl_auth_decode_digest_http_message(const char *chlg,
|
|||
if(!digest->nonce)
|
||||
return CURLE_BAD_CONTENT_ENCODING;
|
||||
|
||||
/* "<algo>-sess" protocol versions require "auth" or "auth-int" qop */
|
||||
if(!digest->qop && (digest->algo & SESSION_ALGO))
|
||||
return CURLE_BAD_CONTENT_ENCODING;
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue