From a895bc4ee462517ad930bfc597618665a9b73a0c Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Wed, 3 Aug 2011 10:46:04 +0000 Subject: [PATCH] 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 --- server/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.3