mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
protect one-off boundary
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1073728 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user