aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-11-29 22:14:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-11-29 22:14:48 +0000
commit45a2240ead02333e6ddf988af33e0093dbbfcd10 (patch)
tree5de6b3b33df39794382221cd6f81c3c6065de343
parentf75ba55b517a0c84a1ea91e805a3998b0631b88f (diff)
A bug report on the curl-library list showed a HTTP Digest session going on
with a 700+ letter nonce. Previously libcurl only support 127 letter ones and now I bumped it to 1023.
-rw-r--r--lib/http_digest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/http_digest.c b/lib/http_digest.c
index 595ebf0d8..e5efd3ef6 100644
--- a/lib/http_digest.c
+++ b/lib/http_digest.c
@@ -90,19 +90,19 @@ CURLdigest Curl_input_digest(struct connectdata *conn,
Curl_digest_cleanup_one(d);
while(more) {
- char value[32];
- char content[128];
+ char value[256];
+ char content[1024];
size_t totlen=0;
while(*header && ISSPACE(*header))
header++;
/* how big can these strings be? */
- if((2 == sscanf(header, "%31[^=]=\"%127[^\"]\"",
+ if((2 == sscanf(header, "%255[^=]=\"%1023[^\"]\"",
value, content)) ||
/* try the same scan but without quotes around the content but don't
include the possibly trailing comma, newline or carriage return */
- (2 == sscanf(header, "%31[^=]=%127[^\r\n,]",
+ (2 == sscanf(header, "%255[^=]=%1023[^\r\n,]",
value, content)) ) {
if(strequal(value, "nonce")) {
d->nonce = strdup(content);