apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: apr-util/buckets apr_buckets_file.c
Date Sat, 18 Aug 2001 14:08:03 GMT
bjh         01/08/18 07:08:03

  Modified:    buckets  apr_buckets_file.c
  Log:
  Don't leave free method pointer uninitialized in file bucket created after
  an incomplete read. This fixes a seg fault while cleaning up buckets after
  certain types of requests on non-mmap platforms.
  
  Revision  Changes    Path
  1.54      +1 -0      apr-util/buckets/apr_buckets_file.c
  
  Index: apr_buckets_file.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_file.c,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- apr_buckets_file.c	2001/08/08 05:58:15	1.53
  +++ apr_buckets_file.c	2001/08/18 14:08:03	1.54
  @@ -191,6 +191,7 @@
           b->length = filelength;
           b->data   = a;
           b->type   = &apr_bucket_type_file;
  +        b->free   = free;
           APR_BUCKET_INSERT_AFTER(e, b);
       }
       else {
  
  
  

Mime
View raw message