Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 38331 invoked by uid 500); 10 Sep 2001 15:11:08 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: tomcat-dev@jakarta.apache.org Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 38319 invoked by uid 500); 10 Sep 2001 15:11:07 -0000 Delivered-To: apmail-jakarta-tomcat-cvs@apache.org Date: 10 Sep 2001 15:07:13 -0000 Message-ID: <20010910150713.95048.qmail@icarus.apache.org> From: keith@apache.org To: jakarta-tomcat-cvs@apache.org Subject: cvs commit: jakarta-tomcat/src/native/mod_jk/apache1.3 mod_jk.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N keith 01/09/10 08:07:13 Modified: src/native/mod_jk/apache1.3 mod_jk.c Log: General case of chunked input was traversing an unintended code path. Reported by: David Schreibman Revision Changes Path 1.15 +3 -2 jakarta-tomcat/src/native/mod_jk/apache1.3/mod_jk.c Index: mod_jk.c =================================================================== RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/apache1.3/mod_jk.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- mod_jk.c 2001/09/08 20:04:28 1.14 +++ mod_jk.c 2001/09/10 15:07:12 1.15 @@ -845,12 +845,13 @@ l, &is_recoverable_error); - if (s.content_read < s.content_length || s.is_chunked) { + if (s.content_read < s.content_length || + (s.is_chunked && ! s.no_more_chunks)) { /* * If the servlet engine didn't consume all of the * request data, consume and discard all further * characters left to read from client - */ + */ char *buff = ap_palloc(r->pool, 2048); if (buff != NULL) {