]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Finish the switch to huge file support
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 10 Oct 2001 20:05:13 +0000 (20:05 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 10 Oct 2001 20:05:13 +0000 (20:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91407 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_asis.c

index 1a2430498a0da3530174c0ea0be531f754231dcf..54eb1e28ce3fd398eb7435bd5b4e777e83e45e71 100644 (file)
@@ -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