httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_http.c
Date Mon, 31 Dec 2001 21:03:12 GMT
stoddard    01/12/31 13:03:12

  Modified:    .        CHANGES
               modules/proxy proxy_http.c
  Log:
  Fix mod_proxy seg fault when the proxied server returns
  an HTTP/0.9 response or a bogus status line.
  
  Submitted by: Adam Sussman
  Reviewed by:	Bill Stoddard
  
  Revision  Changes    Path
  1.498     +4 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.497
  retrieving revision 1.498
  diff -u -r1.497 -r1.498
  --- CHANGES	31 Dec 2001 20:53:28 -0000	1.497
  +++ CHANGES	31 Dec 2001 21:03:12 -0000	1.498
  @@ -1,4 +1,8 @@
   Changes with Apache 2.0.30-dev
  +  *) Fix mod_proxy seg fault when the proxied server returns 
  +     an HTTP/0.9 response or a bogus status line.
  +     [Adam Sussman]
  +
     *) Prevent mod_proxy from truncating one character off the
        end of the status line returned from the proxied server.
        [Adam Sussman, Bill Stoddard]
  
  
  
  1.117     +1 -1      httpd-2.0/modules/proxy/proxy_http.c
  
  Index: proxy_http.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_http.c,v
  retrieving revision 1.116
  retrieving revision 1.117
  diff -u -r1.116 -r1.117
  --- proxy_http.c	31 Dec 2001 20:53:28 -0000	1.116
  +++ proxy_http.c	31 Dec 2001 21:03:12 -0000	1.117
  @@ -801,7 +801,7 @@
           /* Is it an HTTP/0.9 response? If so, send the extra data */
           if (backasswards) {
               apr_ssize_t cntr = len;
  -            e = apr_bucket_heap_create(buffer, cntr, 0);
  +            e = apr_bucket_heap_create(buffer, cntr, 1);
               APR_BRIGADE_INSERT_TAIL(bb, e);
           }
   
  
  
  

Mime
View raw message