From: William A. Rowe Jr Date: Wed, 10 Oct 2001 20:05:13 +0000 (+0000) Subject: Finish the switch to huge file support X-Git-Tag: 2.0.26~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09944eaafd3e7347b0ddd0406eef490fbda12480;p=thirdparty%2Fapache%2Fhttpd.git Finish the switch to huge file support git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91407 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_asis.c b/modules/generators/mod_asis.c index 1a2430498a0..54eb1e28ce3 100644 --- a/modules/generators/mod_asis.c +++ b/modules/generators/mod_asis.c @@ -138,14 +138,14 @@ static int asis_handler(request_rec *r) * in case the brigade code/filters attempt to read it directly. */ apr_off_t fsize = r->finfo.size - pos; - e = apr_bucket_file_create(fd, pos, AP_MAX_SENDFILE, r->pool); + b = apr_bucket_file_create(f, pos, AP_MAX_SENDFILE, r->pool); while (fsize > AP_MAX_SENDFILE) { - APR_BRIGADE_INSERT_TAIL(bb, e); - apr_bucket_copy(e, &e); - e->start += AP_MAX_SENDFILE; + APR_BRIGADE_INSERT_TAIL(bb, b); + apr_bucket_copy(b, &b); + b->start += AP_MAX_SENDFILE; fsize -= AP_MAX_SENDFILE; } - e->length = (apr_size_t)fsize; /* Resize just the last bucket */ + b->length = (apr_size_t)fsize; /* Resize just the last bucket */ } else #endif