the digest code. This fixes it.
struct SessionHandle *data=conn->data;
bool before = FALSE; /* got a nonce before */
struct digestdata *d;
-
+
if(proxy) {
d = &data->state.proxydigest;
}
else {
/* unknown specifier, ignore it! */
}
- totlen = strlen(value)+strlen(content)+3;
+ totlen = strlen(value)+strlen(content)+1;
+
+ if(header[strlen(value)+1] == '\"')
+ /* the contents were within quotes, then add 2 for them to the
+ length */
+ totlen += 2;
}
else
break; /* we're done here */