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 protocol.c
Date Fri, 08 Feb 2002 02:25:43 GMT
gregames    02/02/07 18:25:43

  Modified:    server   protocol.c
  Log:
  ensure that ap_rgetline allocates storage for the request line each time it is
  called.
  
  This fixes a number of segfaults on daedalus where the first line is
  empty (i.e. \r\n followed by a bunch of garbage)
  
  Revision  Changes    Path
  1.82      +4 -0      httpd-2.0/server/protocol.c
  
  Index: protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/protocol.c,v
  retrieving revision 1.81
  retrieving revision 1.82
  diff -u -r1.81 -r1.82
  --- protocol.c	6 Feb 2002 16:56:52 -0000	1.81
  +++ protocol.c	8 Feb 2002 02:25:42 -0000	1.82
  @@ -593,6 +593,10 @@
       do {
           apr_status_t rv;
   
  +        /* insure ap_rgetline allocates storage each time thru the loop
  +         * if there are empty lines
  +         */
  +        r->the_request = NULL;
           rv = ap_rgetline(&(r->the_request), DEFAULT_LIMIT_REQUEST_LINE + 2,
                            &len, r, 0);
   
  
  
  

Mime
View raw message