From 5d54beff8ac4d22dba42ea19592acd3dd8b4099b Mon Sep 17 00:00:00 2001 From: Justin Erenkrantz Date: Thu, 27 Jun 2002 04:40:47 +0000 Subject: [PATCH] Fix infinite loop when reading certain data due to two HTTP_IN filters being present for internally redirected requests. If HTTP_IN is present, r->proto_input_filters would have it, so adding it twice is wrong. PR: 10146 Reviewed by: Brian Pane git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95895 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ modules/http/http_request.c | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 0c723ddb10..bfae68757b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.40 + *) Fix infinite loop due to two HTTP_IN filters being present for + internally redirected requests. PR 10146. [Justin Erenkrantz] + *) Switch conn_rec->keepalive to an enumeration rather than a bitfield. [Justin Erenkrantz] diff --git a/modules/http/http_request.c b/modules/http/http_request.c index b3763d6e16..bd9c085956 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -383,8 +383,6 @@ static request_rec *internal_internal_redirect(const char *new_uri, f = f->next; } - ap_add_input_filter("HTTP_IN", NULL, new, new->connection); - apr_table_setn(new->subprocess_env, "REDIRECT_STATUS", apr_itoa(r->pool, r->status)); -- 2.50.1