]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Oops -- detecting EOF while reading chunked is a protocol violation
authorMartin Kraemer <martin@apache.org>
Sun, 14 Apr 2002 19:08:16 +0000 (19:08 +0000)
committerMartin Kraemer <martin@apache.org>
Sun, 14 Apr 2002 19:08:16 +0000 (19:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@94650 13f79535-47bb-0310-9956-ffa450edef68

src/modules/proxy/proxy_util.c

index c0e685e0f01b19d485b2e7e04da8d0cc6118693d..9cb255a7ced7735ce7ed2f27b4902f2fe83f697a 100644 (file)
@@ -560,8 +560,10 @@ long int ap_proxy_send_fb(BUFF *f, request_rec *r, cache_req *c, off_t len, int
                  * not an EBCDIC-CRLF (\r\n).
                  */
                 if ((ch = ap_bgetc(f)) == EOF) {
-                    /* EOF detected */
-                    n = 0;
+                    /* Protocol error: EOF detected within chunk */
+                    n = -1;
+                    ap_log_rerror(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, r,
+                                  "proxy: remote protocol error, eof while reading chunked from proxy");
                 }
                 else
                 {