From: Ruediger Pluem Date: Fri, 29 Jan 2016 11:36:36 +0000 (+0000) Subject: * Ensure that proto_num and protocol is set in another "error out early" edge X-Git-Tag: 2.5.0-alpha~2257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bbf50d549a8793b7026f1d22b54b321fc18da00;p=thirdparty%2Fapache%2Fhttpd.git * Ensure that proto_num and protocol is set in another "error out early" edge case. This can happen with invalid CONNECT requests as described in the PR. PR: 58929 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1727544 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index fb4f1daa5f7..409be611aa0 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,10 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.0 + *) core: Prevent a server crash in case of an invalid CONNECT request with + a custom error page for status code 400 that uses server side includes. + PR 58929 [Ruediger Pluem] + *) mod_ssl: Add SSLOCSPProxyURL to add the possibility to do all queries to OCSP responders through a HTTP proxy. [Ruediger Pluem] diff --git a/server/protocol.c b/server/protocol.c index f36e9bdad95..27cd706ce4c 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -647,6 +647,8 @@ static int read_request_line(request_rec *r, apr_bucket_brigade *bb) ap_parse_uri(r, uri); if (r->status != HTTP_OK) { + r->proto_num = HTTP_VERSION(1,0); + r->protocol = apr_pstrdup(r->pool, "HTTP/1.0"); return 0; }