Commit 8bc7868c authored by Jim Jagielski's avatar Jim Jagielski
Browse files

protect one-off boundary

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1073728 13f79535-47bb-0310-9956-ffa450edef68
parent d294579a
Loading
Loading
Loading
Loading
+3 −3
Changes for modules/proxy/mod_proxy_balancer.c: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -938,12 +938,12 @@ static int balancer_handler(request_rec *r)
    }
    if (r->method_number == M_POST) {
        apr_bucket_brigade *ib;
        apr_size_t len;
        char *buf = apr_pcalloc(r->pool, 1024);;
        apr_size_t len = 1024;
        char *buf = apr_pcalloc(r->pool, len+1);
        
        ib = apr_brigade_create(r->connection->pool, r->connection->bucket_alloc);
        rv = ap_get_brigade(r->input_filters, ib, AP_MODE_READBYTES,
                                APR_BLOCK_READ, 1024);
                                APR_BLOCK_READ, len);
        if (rv != APR_SUCCESS) {
            return HTTP_INTERNAL_SERVER_ERROR;
        }