mirror of
https://github.com/curl/curl.git
synced 2026-08-05 01:16:19 +03:00
when we receive a request overflow, we still dump the incoming request to
the dump file to make it easier to understand and debug the situation
This commit is contained in:
parent
3d99b566a6
commit
f385b1976e
1 changed files with 4 additions and 0 deletions
|
|
@ -262,6 +262,10 @@ static int get_request(int sock, int *part, int *open)
|
|||
|
||||
if (offset >= REQBUFSIZ) {
|
||||
logmsg("Request buffer overflow, closing connection");
|
||||
/* dump the request to an external file anyway */
|
||||
reqbuf[REQBUFSIZ-1]=0;
|
||||
storerequest(reqbuf);
|
||||
|
||||
return DOCNUMBER_INTERNAL;
|
||||
}
|
||||
reqbuf[offset]=0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue