]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Convert just the message text to EBCDIC, and not the (already EBCDIC) status code
authorMartin Kraemer <martin@apache.org>
Thu, 30 Aug 2007 15:29:27 +0000 (15:29 +0000)
committerMartin Kraemer <martin@apache.org>
Thu, 30 Aug 2007 15:29:27 +0000 (15:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@571209 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/ajp_header.c

index 4f037566e2eaf787e3cca3486dafb4ddff5046e4..eb78bc3db145a60219d7c28b03e8e43549dfc3bf 100644 (file)
@@ -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;
     }