httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Sussman <mydd...@vishnu.vidya.com>
Subject [PATCH] mod_proxy truncates status line
Date Sat, 29 Dec 2001 01:24:45 GMT

Mod_proxy truncates the status line returned by the proxied
server.  One character gets snipped off of the end of the
status line.

-adam

Index: modules/proxy/proxy_http.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/proxy/proxy_http.c,v
retrieving revision 1.114
diff -u -r1.114 proxy_http.c
--- proxy_http.c	19 Dec 2001 16:32:01 -0000	1.114
+++ proxy_http.c	29 Dec 2001 00:12:21 -0000
@@ -689,7 +689,7 @@
                             "server: ", buffer, NULL));
             }
             backasswards = 0;
-            buffer[--len] = '\0';
+            buffer[len] = '\0';
 
             buffer[12] = '\0';
             r->status = atoi(&buffer[9]);

Mime
View raw message