port fix for BZ 36155 from the JK Connector
authorbillbarker <billbarker@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 28 Jun 2008 02:11:48 +0000 (02:11 +0000)
committerbillbarker <billbarker@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 28 Jun 2008 02:11:48 +0000 (02:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@672454 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/coyote/ajp/AjpMessage.java

index 4b43181..6f31628 100644 (file)
@@ -330,6 +330,7 @@ public class AjpMessage {
             return;
         }
         mb.setBytes(buf, pos, length);
+        mb.getCharChunk().recycle(); // not valid anymore
         pos += length;
         pos++; // Skip the terminating \0
     }