Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 49126 invoked by uid 500); 18 Aug 2001 14:12:33 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 49114 invoked by uid 500); 18 Aug 2001 14:12:32 -0000 Delivered-To: apmail-apr-util-cvs@apache.org Date: 18 Aug 2001 14:08:03 -0000 Message-ID: <20010818140803.27051.qmail@icarus.apache.org> From: bjh@apache.org To: apr-util-cvs@apache.org Subject: cvs commit: apr-util/buckets apr_buckets_file.c X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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 {