httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/ssl ssl_engine_io.c
Date Mon, 04 Nov 2002 19:41:52 GMT
wrowe       2002/11/04 11:41:52

  Modified:    modules/ssl ssl_engine_io.c
  Log:
    Appears we forgot to check the possibility of errors coming from the
    write brigade passed down from the content generator through the body
    and protocol filters.
  
  Revision  Changes    Path
  1.92      +6 -1      httpd-2.0/modules/ssl/ssl_engine_io.c
  
  Index: ssl_engine_io.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_io.c,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- ssl_engine_io.c	4 Nov 2002 17:39:56 -0000	1.91
  +++ ssl_engine_io.c	4 Nov 2002 19:41:52 -0000	1.92
  @@ -690,8 +690,13 @@
               /* read filter */
               const char *data;
               apr_size_t len;
  +            
  +            status = apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ);
  +
  +            if (APR_STATUS_IS_EOF(status) && (status != APR_SUCCESS)) {
  +                break;
  +            }
   
  -            apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ);
               status = ssl_filter_write(f, data, len);
               apr_bucket_delete(bucket);
   
  
  
  

Mime
View raw message