httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject cvs commit: httpd-2.0/server core.c
Date Wed, 31 Oct 2001 22:55:43 GMT
gregames    01/10/31 14:55:43

  Modified:    server   core.c
  Log:
  whoops! can't use the return code to pass the length up the filter chain.
  
  with this and a request line that goes on forever, I now get:
  
  [Wed Oct 31 17:45:45 2001] [error] [client 127.0.0.1] request failed:
  URI too long
  
  ...in the error log, and a 414 in the access log.
  
  Revision  Changes    Path
  1.85      +2 -2      httpd-2.0/server/core.c
  
  Index: core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/core.c,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -r1.84 -r1.85
  --- core.c	2001/10/31 20:18:56	1.84
  +++ core.c	2001/10/31 22:55:43	1.85
  @@ -2938,8 +2938,8 @@
           *readbytes += len;
           /* We didn't find an APR_ASCII_LF within the predefined maximum
            * line length. */
  -        if (len >= HUGE_STRING_LEN) {
  -            return len;
  +        if (*readbytes >= HUGE_STRING_LEN) {
  +            break;
           }
       }
   
  
  
  

Mime
View raw message