]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_engine_io.c (ssl_io_buffer_fill): Remove subpool; it
authorJoe Orton <jorton@apache.org>
Wed, 22 Nov 2006 12:11:57 +0000 (12:11 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 22 Nov 2006 12:11:57 +0000 (12:11 +0000)
cannot be destroyed before r->pool so serves no purpose.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@478141 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_io.c

index 0c55c2b41e6595079396105caa2a98d0a1a4a264..5c667d7682a0e86eb695744ca0984bd66c44dd26 100644 (file)
@@ -1454,7 +1454,6 @@ static apr_status_t ssl_io_filter_output(ap_filter_t *f,
 
 struct modssl_buffer_ctx {
     apr_bucket_brigade *bb;
-    apr_pool_t *pool;
 };
 
 int ssl_io_buffer_fill(request_rec *r)
@@ -1469,8 +1468,7 @@ int ssl_io_buffer_fill(request_rec *r)
      * containing a setaside pool and a brigade which constrain the
      * lifetime of the buffered data. */
     ctx = apr_palloc(r->pool, sizeof *ctx);
-    apr_pool_create(&ctx->pool, r->pool);
-    ctx->bb = apr_brigade_create(ctx->pool, c->bucket_alloc);
+    ctx->bb = apr_brigade_create(r->pool, c->bucket_alloc);
 
     /* ... and a temporary brigade. */
     tempb = apr_brigade_create(r->pool, c->bucket_alloc);
@@ -1515,7 +1513,7 @@ int ssl_io_buffer_fill(request_rec *r)
                 total += len;
             }
 
-            rv = apr_bucket_setaside(e, ctx->pool);
+            rv = apr_bucket_setaside(e, r->pool);
             if (rv != APR_SUCCESS) {
                 ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r,
                               "could not setaside bucket for SSL buffer");