From: Cliff Woolley Date: Tue, 11 Jun 2002 04:54:01 +0000 (+0000) Subject: fix the infinite recursion problem with HTTP-on-the-HTTPS port. X-Git-Tag: 2.0.37~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67891efa2f84cc1d8cd18b0189e8cd369635c888;p=apache fix the infinite recursion problem with HTTP-on-the-HTTPS port. Reported by: Paul J. Reder Submitted by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95604 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index 97812e9ea9..c03832b31f 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/ssl_engine_kernel.c @@ -199,6 +199,13 @@ int ssl_hook_ReadReq(request_rec *r) thisurl, thisurl); apr_table_setn(r->notes, "error-notes", errmsg); + + /* Now that we have caught this error, forget it. we are done + * with using SSL on this request. + */ + sslconn->non_ssl_request = 0; + + return HTTP_BAD_REQUEST; }