From: Stefan Fritsch Date: Wed, 3 Aug 2011 10:46:04 +0000 (+0000) Subject: Fix handling of offset in ap_send_fd() X-Git-Tag: 2.3.15~427 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a895bc4ee462517ad930bfc597618665a9b73a0c;p=thirdparty%2Fapache%2Fhttpd.git Fix handling of offset in ap_send_fd() PR: 51592 Submitted by: Torsten Foertsch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1153424 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index d78290af8fa..bf48919459e 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -1380,7 +1380,7 @@ AP_DECLARE(apr_status_t) ap_send_fd(apr_file_t *fd, request_rec *r, bb = apr_brigade_create(r->pool, c->bucket_alloc); - apr_brigade_insert_file(bb, fd, 0, len, r->pool); + apr_brigade_insert_file(bb, fd, offset, len, r->pool); rv = ap_pass_brigade(r->output_filters, bb); if (rv != APR_SUCCESS) {