mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:43:34 +03:00
- Fixed the HTTP Digest auth code to not behave badly when getting a blank realm
with realm="". http://curl.haxx.se/bug/view.cgi?id=2126435
This commit is contained in:
parent
4d437416da
commit
1b9d311b5c
3 changed files with 11 additions and 0 deletions
|
|
@ -104,6 +104,12 @@ CURLdigest Curl_input_digest(struct connectdata *conn,
|
|||
include the possibly trailing comma, newline or carriage return */
|
||||
(2 == sscanf(header, "%255[^=]=%1023[^\r\n,]",
|
||||
value, content)) ) {
|
||||
if(!strcmp("\"\"", content)) {
|
||||
/* for the name="" case where we get only the "" in the content variable,
|
||||
* simply clear the content then
|
||||
*/
|
||||
content[0]=0;
|
||||
}
|
||||
if(strequal(value, "nonce")) {
|
||||
d->nonce = strdup(content);
|
||||
if(!d->nonce)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue