From: Martin Kraemer Date: Thu, 30 Aug 2007 15:29:27 +0000 (+0000) Subject: Convert just the message text to EBCDIC, and not the (already EBCDIC) status code X-Git-Tag: 2.2.6~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73cee5a8a4e5c0d1a333c24442c45dae1d67d606;p=thirdparty%2Fapache%2Fhttpd.git Convert just the message text to EBCDIC, and not the (already EBCDIC) status code git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@571209 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/ajp_header.c b/modules/proxy/ajp_header.c index 4f037566e2e..eb78bc3db14 100644 --- a/modules/proxy/ajp_header.c +++ b/modules/proxy/ajp_header.c @@ -473,10 +473,11 @@ static apr_status_t ajp_unmarshal_response(ajp_msg_t *msg, rc = ajp_msg_get_string(msg, &ptr); if (rc == APR_SUCCESS) { - r->status_line = apr_psprintf(r->pool, "%d %s", status, ptr); -#if defined(AS400) || defined(_OSD_POSIX) - ap_xlate_proto_from_ascii(r->status_line, strlen(r->status_line)); +#if defined(AS400) || defined(_OSD_POSIX) /* EBCDIC platforms */ + ptr = apr_pstrdup(r->pool, ptr); + ap_xlate_proto_from_ascii(ptr, strlen(ptr)); #endif + r->status_line = apr_psprintf(r->pool, "%d %s", status, ptr); } else { r->status_line = NULL; }