You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@apache.org on 2001/08/18 16:08:03 UTC

cvs commit: apr-util/buckets apr_buckets_file.c

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 {