httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-2.0/modules/filters mod_deflate.c
Date Wed, 29 May 2002 17:55:42 GMT
jerenkrantz    02/05/29 10:55:42

  Modified:    modules/filters mod_deflate.c
  Log:
  Make sure that z_RC is not Z_STREAM_END in case we get a 0-length bucket
  and we don't enter the while loop.
  
  Submitted by:	Jeff Trawick's horde of picky compilers
  
  Revision  Changes    Path
  1.12      +2 -0      httpd-2.0/modules/filters/mod_deflate.c
  
  Index: mod_deflate.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/filters/mod_deflate.c,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- mod_deflate.c	29 May 2002 14:26:00 -0000	1.11
  +++ mod_deflate.c	29 May 2002 17:55:42 -0000	1.12
  @@ -669,6 +669,8 @@
               ctx->stream.next_in = (unsigned char *)data;
               ctx->stream.avail_in = len;
   
  +            zRC = Z_OK;
  +
               while (ctx->stream.avail_in != 0) {
                   if (ctx->stream.avail_out == 0) {
                       apr_bucket *tmp_heap;
  
  
  

Mime
View raw message