summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Frederic Clere <jfclere@apache.org>2005-12-15 16:58:10 +0000
committerJean-Frederic Clere <jfclere@apache.org>2005-12-15 16:58:10 +0000
commitfe2d4956718a8a67eb4c54609e44f52168e1871c (patch)
treefeb1b96e62bd336cb41f42aee307c63b2956846c
parent5aa5b6bf3e19e27be7733cf206e96770b02b291a (diff)
downloadhttpd-fe2d4956718a8a67eb4c54609e44f52168e1871c.tar.gz
Sorry, previous commit was not ok.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357044 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--modules/proxy/ajp_header.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/proxy/ajp_header.c b/modules/proxy/ajp_header.c
index b362d533e4..4161aef5b7 100644
--- a/modules/proxy/ajp_header.c
+++ b/modules/proxy/ajp_header.c
@@ -461,6 +461,9 @@ static apr_status_t ajp_unmarshal_response(ajp_msg_t *msg,
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 @@ static apr_status_t ajp_unmarshal_response(ajp_msg_t *msg,
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 {