From: Eric Covener Date: Tue, 20 Mar 2018 21:17:18 +0000 (+0000) Subject: PR62200: EBCDIC: ap_rgetline APR_ENOSPC X-Git-Tag: 2.5.0-alpha2-ci-test-only~2772 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d971f78380597436f553548630f2d898c6cef22;p=thirdparty%2Fapache%2Fhttpd.git PR62200: EBCDIC: ap_rgetline APR_ENOSPC On EBCDIC systems, translation does not occur in ap_rgetline() if the line is larger than the buffer size. Submitted By: Hank Ibell Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827359 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 36250c224d6..2f57f83cef4 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,10 @@ -*- coding: utf-8 -*- Changes with Apache 2.5.1 + *) core: On ECBDIC platforms, some errors related to oversized headers + may be misreported or be logged as ASCII escapes. PR62200 + [Hank Ibell ] + *) mod_remoteip: make proxy-protocol work on slave connections, e.g. in HTTP/2 requests. See also https://github.com/roadrunner2/mod-proxy-protocol/issues/6 [Stefan Eissing] diff --git a/server/protocol.c b/server/protocol.c index 69634d78bbb..31101bd6edf 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -476,7 +476,7 @@ AP_DECLARE(apr_status_t) ap_rgetline(char **s, apr_size_t n, apr_status_t rv; rv = ap_rgetline_core(s, n, read, r, fold, bb); - if (rv == APR_SUCCESS) { + if (rv == APR_SUCCESS || APR_STATUS_IS_ENOSPC(rv)) { ap_xlate_proto_from_ascii(*s, *read); } return rv;