Blame SOURCES/mod_http2-1.15.7-CVE-2021-33193.patch

f0a8b5
diff --git a/mod_http2/h2_request.c b/mod_http2/h2_request.c
f0a8b5
index 5893c8b..1131440 100644
f0a8b5
--- a/mod_http2/h2_request.c
f0a8b5
+++ b/mod_http2/h2_request.c
f0a8b5
@@ -206,75 +206,13 @@ h2_request *h2_request_clone(apr_pool_t *p, const h2_request *src)
f0a8b5
     return dst;
f0a8b5
 }
f0a8b5
 
f0a8b5
-#if !AP_MODULE_MAGIC_AT_LEAST(20150222, 13)
f0a8b5
-static request_rec *my_ap_create_request(conn_rec *c)
f0a8b5
-{
f0a8b5
-    apr_pool_t *p;
f0a8b5
-    request_rec *r;
f0a8b5
-
f0a8b5
-    apr_pool_create(&p, c->pool);
f0a8b5
-    apr_pool_tag(p, "request");
f0a8b5
-    r = apr_pcalloc(p, sizeof(request_rec));
f0a8b5
-    AP_READ_REQUEST_ENTRY((intptr_t)r, (uintptr_t)c);
f0a8b5
-    r->pool            = p;
f0a8b5
-    r->connection      = c;
f0a8b5
-    r->server          = c->base_server;
f0a8b5
-    
f0a8b5
-    r->user            = NULL;
f0a8b5
-    r->ap_auth_type    = NULL;
f0a8b5
-    
f0a8b5
-    r->allowed_methods = ap_make_method_list(p, 2);
f0a8b5
-
f0a8b5
-    r->headers_in      = apr_table_make(r->pool, 5);
f0a8b5
-    r->trailers_in     = apr_table_make(r->pool, 5);
f0a8b5
-    r->subprocess_env  = apr_table_make(r->pool, 25);
f0a8b5
-    r->headers_out     = apr_table_make(r->pool, 12);
f0a8b5
-    r->err_headers_out = apr_table_make(r->pool, 5);
f0a8b5
-    r->trailers_out    = apr_table_make(r->pool, 5);
f0a8b5
-    r->notes           = apr_table_make(r->pool, 5);
f0a8b5
-    
f0a8b5
-    r->request_config  = ap_create_request_config(r->pool);
f0a8b5
-    /* Must be set before we run create request hook */
f0a8b5
-    
f0a8b5
-    r->proto_output_filters = c->output_filters;
f0a8b5
-    r->output_filters  = r->proto_output_filters;
f0a8b5
-    r->proto_input_filters = c->input_filters;
f0a8b5
-    r->input_filters   = r->proto_input_filters;
f0a8b5
-    ap_run_create_request(r);
f0a8b5
-    r->per_dir_config  = r->server->lookup_defaults;
f0a8b5
-    
f0a8b5
-    r->sent_bodyct     = 0;                      /* bytect isn't for body */
f0a8b5
-    
f0a8b5
-    r->read_length     = 0;
f0a8b5
-    r->read_body       = REQUEST_NO_BODY;
f0a8b5
-    
f0a8b5
-    r->status          = HTTP_OK;  /* Until further notice */
f0a8b5
-    r->header_only     = 0;
f0a8b5
-    r->the_request     = NULL;
f0a8b5
-    
f0a8b5
-    /* Begin by presuming any module can make its own path_info assumptions,
f0a8b5
-     * until some module interjects and changes the value.
f0a8b5
-     */
f0a8b5
-    r->used_path_info = AP_REQ_DEFAULT_PATH_INFO;
f0a8b5
-    
f0a8b5
-    r->useragent_addr = c->client_addr;
f0a8b5
-    r->useragent_ip = c->client_ip;
f0a8b5
-    
f0a8b5
-    return r;
f0a8b5
-}
f0a8b5
-#endif
f0a8b5
-
f0a8b5
 request_rec *h2_request_create_rec(const h2_request *req, conn_rec *c)
f0a8b5
 {
f0a8b5
-    int access_status = HTTP_OK;    
f0a8b5
+    int access_status = HTTP_OK;
f0a8b5
     const char *rpath;
f0a8b5
     const char *s;
f0a8b5
 
f0a8b5
-#if AP_MODULE_MAGIC_AT_LEAST(20150222, 13)
f0a8b5
     request_rec *r = ap_create_request(c);
f0a8b5
-#else
f0a8b5
-    request_rec *r = my_ap_create_request(c);
f0a8b5
-#endif
f0a8b5
 
f0a8b5
     r->headers_in = apr_table_clone(r->pool, req->headers);
f0a8b5