From dc55b249e60ba2d2cb6732a9cf0b6926f594fd91 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 6 Aug 2001 18:41:31 +0000 Subject: [PATCH] We are done with this subrequest (before we even got started...) so dump it early. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89943 13f79535-47bb-0310-9956-ffa450edef68 --- modules/generators/mod_cgi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index 183bd5d931..13fc514d0f 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -786,15 +786,18 @@ static int include_cgi(char *s, request_rec *r, ap_filter_t *next, apr_bucket *tmp_buck, *tmp2_buck; if (rr->status != HTTP_OK) { + ap_destroy_sub_req(rr); return -1; } /* No hardwired path info or query allowed */ if ((rr->path_info && rr->path_info[0]) || rr->args) { + ap_destroy_sub_req(rr); return -1; } if (rr->finfo.filetype != APR_REG) { + ap_destroy_sub_req(rr); return -1; } -- 2.40.0