mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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
@ -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…
Reference in New Issue
Block a user