1
0
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:
Daniel Stenberg 2004-01-30 09:27:27 +00:00
parent 3d99b566a6
commit f385b1976e

View File

@ -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;