]> granicus.if.org Git - apache/commitdiff
Fix bug which would cause offset to be ignored in send_the_file() if there were
authorBill Stoddard <stoddard@apache.org>
Mon, 9 Oct 2000 16:35:20 +0000 (16:35 +0000)
committerBill Stoddard <stoddard@apache.org>
Mon, 9 Oct 2000 16:35:20 +0000 (16:35 +0000)
no headers to send.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86477 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index 330cf95ba06ce03522ccbaa357cb3e8376f7dead..3d6f58e15383a650ab0f269638d1f606e67df603 100644 (file)
@@ -2582,7 +2582,7 @@ static apr_status_t send_the_file(conn_rec *c, apr_file_t *fd,
                                   apr_hdtr_t *hdtr, apr_off_t offset, 
                                   apr_size_t length, apr_size_t *nbytes) 
 {
-    apr_status_t rv = APR_EINIT;
+    apr_status_t rv = APR_SUCCESS;
     apr_size_t n = length;
     apr_int32_t sendlen = 0;
     apr_int32_t togo;