You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2023/03/31 12:04:33 UTC
svn commit: r1908852 - in /httpd/httpd/branches/2.4.x: ./ changes-entries/http2_pr66539.txt modules/http2/h2_request.c
Author: icing
Date: Fri Mar 31 12:04:33 2023
New Revision: 1908852
URL: http://svn.apache.org/viewvc?rev=1908852&view=rev
Log:
Merge r1908691 from trunk:
*) mod_http2: fixed a crash during connection termination. See PR 66539.
Added:
httpd/httpd/branches/2.4.x/changes-entries/http2_pr66539.txt
- copied unchanged from r1908691, httpd/httpd/trunk/changes-entries/http2_pr66539.txt
Modified:
httpd/httpd/branches/2.4.x/ (props changed)
httpd/httpd/branches/2.4.x/modules/http2/h2_request.c
Propchange: httpd/httpd/branches/2.4.x/
------------------------------------------------------------------------------
Merged /httpd/httpd/trunk:r1908691
Modified: httpd/httpd/branches/2.4.x/modules/http2/h2_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/http2/h2_request.c?rev=1908852&r1=1908851&r2=1908852&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/http2/h2_request.c (original)
+++ httpd/httpd/branches/2.4.x/modules/http2/h2_request.c Fri Mar 31 12:04:33 2023
@@ -279,7 +279,7 @@ static request_rec *my_ap_create_request
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 *
{
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