You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jf...@apache.org on 2005/12/15 17:58:16 UTC

svn commit: r357044 - /httpd/httpd/trunk/modules/proxy/ajp_header.c

Author: jfclere
Date: Thu Dec 15 08:58:10 2005
New Revision: 357044

URL: http://svn.apache.org/viewcvs?rev=357044&view=rev
Log:
Sorry, previous commit was not ok.

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=357044&r1=357043&r2=357044&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/ajp_header.c (original)
+++ httpd/httpd/trunk/modules/proxy/ajp_header.c Thu Dec 15 08:58:10 2005
@@ -461,6 +461,9 @@
     const char *ptr;
     apr_uint16_t  num_headers;
     int i;
+#if defined(AS400) || defined(_OSD_POSIX)
+    char *tmp;
+#endif
 
     rc = ajp_msg_get_uint16(msg, &status);
 
@@ -474,9 +477,9 @@
     rc = ajp_msg_get_string(msg, &ptr);
     if (rc == APR_SUCCESS) {
 #if defined(AS400) || defined(_OSD_POSIX)
-        char *tmp = ap_pstrdup(r->pool, ptr);
+        tmp = ap_pstrdup(r->pool, ptr);
         ap_xlate_proto_from_ascii(tmp, strlen(tmp));
-        ptr = tmp
+        ptr = tmp;
 #endif
         r->status_line =  apr_psprintf(r->pool, "%d %s", status, ptr);
     } else {