From: William A. Rowe Jr Date: Mon, 6 Aug 2001 18:41:31 +0000 (+0000) Subject: We are done with this subrequest (before we even got started...) so X-Git-Tag: 2.0.23~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc55b249e60ba2d2cb6732a9cf0b6926f594fd91;p=apache 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 --- 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; }