]> granicus.if.org Git - apache/commitdiff
Sometimes, boys and girls, pointers and integers *aren't interchangeable.
authorVictor J. Orlikowski <orlikowski@apache.org>
Mon, 23 Apr 2001 21:49:15 +0000 (21:49 +0000)
committerVictor J. Orlikowski <orlikowski@apache.org>
Mon, 23 Apr 2001 21:49:15 +0000 (21:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88923 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_ftp.c
modules/proxy/proxy_http.c

index d61e80c355340be033219d41cdb11e71df8e02e6..69d29a078090e3fae488a29542fd5f8a8f4cd6dc 100644 (file)
@@ -550,6 +550,7 @@ PROXY_DECLARE (int) ap_proxy_ftp_handler(request_rec *r, proxy_server_conf *conf
     int i, j, len, rc;
     int one = 1;
     char *size = NULL;
+    apr_size_t remain = -1;
 
     /* stuff for PASV mode */
     int connect = 0, use_port = 0;
@@ -1573,7 +1574,7 @@ PROXY_DECLARE (int) ap_proxy_ftp_handler(request_rec *r, proxy_server_conf *conf
                     "proxy: FTP: start body send");
 
        /* read the body, pass it to the output filters */
-       while (ap_get_brigade(remote->input_filters, bb, AP_MODE_BLOCKING, -1) == APR_SUCCESS) {
+       while (ap_get_brigade(remote->input_filters, bb, AP_MODE_BLOCKING, &remain) == APR_SUCCESS) {
            if (APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(bb))) {
                e = apr_bucket_flush_create();
                APR_BRIGADE_INSERT_TAIL(bb, e);
index a623cdd9bb1f6fd17ad4c882069d23724e3cf5a4..54c9cf1e2d5b32a9d2edea54129672a65dec9194 100644 (file)
@@ -776,7 +776,7 @@ PROXY_DECLARE (int) ap_proxy_http_handler(request_rec *r, proxy_server_conf *con
                     "proxy: start body send");
 
        /* read the body, pass it to the output filters */
-       while (ap_get_brigade(rp->input_filters, bb, AP_MODE_BLOCKING, remain) == APR_SUCCESS) {
+       while (ap_get_brigade(rp->input_filters, bb, AP_MODE_BLOCKING, &remain) == APR_SUCCESS) {
            if (APR_BUCKET_IS_EOS(APR_BRIGADE_LAST(bb))) {
                e = apr_bucket_flush_create();
                APR_BRIGADE_INSERT_TAIL(bb, e);