httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r357022 - /httpd/httpd/trunk/modules/proxy/ajp_header.c
Date Thu, 15 Dec 2005 14:44:44 GMT
Author: jfclere
Date: Thu Dec 15 06:44:39 2005
New Revision: 357022

URL: http://svn.apache.org/viewcvs?rev=357022&view=rev
Log:
The string comming from TC is in ASCII and the string returned by apr_psprintf isn't.

Modified:
    httpd/httpd/trunk/modules/proxy/ajp_header.c

Modified: httpd/httpd/trunk/modules/proxy/ajp_header.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/ajp_header.c?rev=357022&r1=357021&r2=357022&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/ajp_header.c (original)
+++ httpd/httpd/trunk/modules/proxy/ajp_header.c Thu Dec 15 06:44:39 2005
@@ -473,10 +473,12 @@
 
     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;
     }



Mime
View raw message