summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2023-03-24 16:16:29 +0000
committerStefan Eissing <icing@apache.org>2023-03-24 16:16:29 +0000
commitd6a9e454a65bc470d2d2f32e2f50070e716eb3fa (patch)
tree14cd5b7ddf468af3ba228dde0cfbbf002d94a87c /modules
parent56745ba205f51eca713f4a3b3dcd1fd16103bb3f (diff)
downloadhttpd-d6a9e454a65bc470d2d2f32e2f50070e716eb3fa.tar.gz
*) mod_http2: fixed a crash during connection termination. See PR 66539.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908691 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/http2/h2_request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/http2/h2_request.c b/modules/http2/h2_request.c
index 4e60dbe0cb..d5d09c1253 100644
--- a/modules/http2/h2_request.c
+++ b/modules/http2/h2_request.c
@@ -279,7 +279,7 @@ static request_rec *my_ap_create_request(conn_rec *c)
apr_bucket *h2_request_create_bucket(const h2_request *req, request_rec *r)
{
conn_rec *c = r->connection;
- apr_table_t *headers = apr_table_copy(r->pool, req->headers);
+ apr_table_t *headers = apr_table_clone(r->pool, req->headers);
const char *uri = req->path;
AP_DEBUG_ASSERT(req->authority);
@@ -303,7 +303,7 @@ static void assign_headers(request_rec *r, const h2_request *req,
{
const char *cl;
- r->headers_in = apr_table_copy(r->pool, req->headers);
+ r->headers_in = apr_table_clone(r->pool, req->headers);
if (req->authority) {
/* for internal handling, we have to simulate that :authority
* came in as Host:, RFC 9113 ch. says that mismatches between