summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/proxy/proxy_http.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c
index fe40235005..aa1e08dd7a 100644
--- a/modules/proxy/proxy_http.c
+++ b/modules/proxy/proxy_http.c
@@ -737,11 +737,18 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
backasswards = 0;
keepchar = buffer[12];
+ if (keepchar == '\0') {
+ ap_log_error(APLOG_MARK, APLOG_WARNING, 0,
+ r->server, "proxy: bad HTTP/%d.%d status line "
+ "returned by %s (%s)", major, minor, r->uri,
+ r->method);
+ }
buffer[12] = '\0';
r->status = atoi(&buffer[9]);
buffer[12] = keepchar;
r->status_line = apr_pstrdup(p, &buffer[9]);
+
/* read the headers. */
/* N.B. for HTTP/1.0 clients, we have to fold line-wrapped headers*/