mirror of
https://github.com/apache/httpd.git
synced 2026-01-26 19:01:35 +03:00
The bucket should be created with the size of the data NOT including a null
terminator as its length. Otherwise, the bucket length value is wrong (too big by one). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89654 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -914,7 +914,7 @@ static int handle_echo(include_ctx_t *ctx, apr_bucket_brigade **bb, request_rec
|
||||
tmp_buck = apr_bucket_heap_create(echo_text, e_len, 1, &e_wrt);
|
||||
}
|
||||
else {
|
||||
tmp_buck = apr_bucket_immortal_create("(none)", sizeof("(none)"));
|
||||
tmp_buck = apr_bucket_immortal_create("(none)", sizeof("(none)")-1);
|
||||
}
|
||||
APR_BUCKET_INSERT_BEFORE(head_ptr, tmp_buck);
|
||||
if (*inserted_head == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user