]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add a FIXME note around some broken code. The write is writing a buffer
authorGraham Leggett <minfrin@apache.org>
Sun, 21 Apr 2002 21:16:39 +0000 (21:16 +0000)
committerGraham Leggett <minfrin@apache.org>
Sun, 21 Apr 2002 21:16:39 +0000 (21:16 +0000)
of bogus data with a length that was never initialised.
PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@94742 13f79535-47bb-0310-9956-ffa450edef68

src/modules/proxy/proxy_http.c

index 9809482a8ae158d65dd3f45b0afe65d7d73cf518..7ca2395554fa31e8409d2f19278683effddde97a 100644 (file)
@@ -152,7 +152,7 @@ int ap_proxy_http_handler(request_rec *r, cache_req *c, char *url,
     const char *strp;
     char *strp2;
     const char *err, *desthost;
-    int i, j, sock, len, backasswards;
+    int i, j, sock,/* len,*/ backasswards;
     table *req_hdrs, *resp_hdrs;
     array_header *reqhdrs_arr;
     table_entry *reqhdrs_elts;
@@ -579,6 +579,11 @@ int ap_proxy_http_handler(request_rec *r, cache_req *c, char *url,
      * Is it an HTTP/0.9 respose? If so, send the extra data we read from
      * upstream as the start of the reponse to client
      */
+/* FIXME: This code is broken: we try and write a buffer and length that
+ * were never intelligently initialised. Rather have a bit of broken protocol
+ * handling for now than broken code.
+ */
+/*
     if (backasswards) {
         ap_hard_timeout("proxy send assbackward", r);
 
@@ -590,7 +595,7 @@ int ap_proxy_http_handler(request_rec *r, cache_req *c, char *url,
         }
         ap_kill_timeout(r);
     }
-
+*/
 
 #ifdef CHARSET_EBCDIC
     /*