Commit f385b197 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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
parent 3d99b566
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;