diff options
author | Jean-Frederic Clere <jfclere@apache.org> | 2005-12-15 14:44:39 +0000 |
---|---|---|
committer | Jean-Frederic Clere <jfclere@apache.org> | 2005-12-15 14:44:39 +0000 |
commit | 5aa5b6bf3e19e27be7733cf206e96770b02b291a (patch) | |
tree | f2105746d781fced7ee7a975e628e7d169803ed3 | |
parent | a81c17f97070e2a96767d13a4e3bd2084b34f381 (diff) | |
download | httpd-5aa5b6bf3e19e27be7733cf206e96770b02b291a.tar.gz |
The string comming from TC is in ASCII and the string returned by apr_psprintf isn't.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357022 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | modules/proxy/ajp_header.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/proxy/ajp_header.c b/modules/proxy/ajp_header.c index 002b5b3bb8..b362d533e4 100644 --- a/modules/proxy/ajp_header.c +++ b/modules/proxy/ajp_header.c @@ -473,10 +473,12 @@ 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)); + char *tmp = ap_pstrdup(r->pool, ptr); + ap_xlate_proto_from_ascii(tmp, strlen(tmp)); + ptr = tmp #endif + r->status_line = apr_psprintf(r->pool, "%d %s", status, ptr); } else { r->status_line = NULL; } |