diff options
| author | Christophe Jaillet <jailletc36@apache.org> | 2014-10-05 06:43:45 +0000 |
|---|---|---|
| committer | Christophe Jaillet <jailletc36@apache.org> | 2014-10-05 06:43:45 +0000 |
| commit | ecc3c818fa7cd9c71d6221a53c7c6066d0fb28fa (patch) | |
| tree | 4588c16f5319e22a59ce42b4ee5d42acd9dd451e /modules/debugging | |
| parent | e40d0a618f66e05f3341fa7b8e8834d43c4fc4fa (diff) | |
| download | httpd-ecc3c818fa7cd9c71d6221a53c7c6066d0fb28fa.tar.gz | |
Style
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1629472 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/debugging')
| -rw-r--r-- | modules/debugging/mod_bucketeer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/debugging/mod_bucketeer.c b/modules/debugging/mod_bucketeer.c index 4142cbe22e..c0c81defc3 100644 --- a/modules/debugging/mod_bucketeer.c +++ b/modules/debugging/mod_bucketeer.c @@ -109,6 +109,7 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f, if (APR_BUCKET_IS_METADATA(e)) { /* metadata bucket */ apr_bucket *cpy; + apr_bucket_copy(e, &cpy); APR_BRIGADE_INSERT_TAIL(ctx->bb, cpy); continue; @@ -124,13 +125,14 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f, data[i] == c->bucketdelimiter || data[i] == c->passdelimiter) { apr_bucket *p; + if (i - lastpos > 0) { p = apr_bucket_pool_create(apr_pmemdup(f->r->pool, &data[lastpos], i - lastpos), - i - lastpos, - f->r->pool, - f->c->bucket_alloc); + i - lastpos, + f->r->pool, + f->c->bucket_alloc); APR_BRIGADE_INSERT_TAIL(ctx->bb, p); } lastpos = i + 1; @@ -166,7 +168,7 @@ static apr_status_t bucketeer_out_filter(ap_filter_t *f, return APR_SUCCESS; } -static void register_hooks(apr_pool_t * p) +static void register_hooks(apr_pool_t *p) { ap_register_output_filter(bucketeerFilterName, bucketeer_out_filter, NULL, AP_FTYPE_RESOURCE-1); |
