You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bi...@apache.org on 2005/03/12 04:27:45 UTC

cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/common MsgAjp.java

billbarker    2005/03/11 19:27:45

  Modified:    jk/java/org/apache/jk/common MsgAjp.java
  Log:
  Set the MB to null when Apache sends null.
  
  Fix for Bug #33971
  
  Revision  Changes    Path
  1.19      +1 -1      jakarta-tomcat-connectors/jk/java/org/apache/jk/common/MsgAjp.java
  
  Index: MsgAjp.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/MsgAjp.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- MsgAjp.java	17 Sep 2004 18:34:18 -0000	1.18
  +++ MsgAjp.java	12 Mar 2005 03:27:44 -0000	1.19
  @@ -214,7 +214,7 @@
       public void getBytes(MessageBytes mb) {
           int length = getInt();
           if( (length == 0xFFFF) || (length == -1) ) {
  -            mb.setString( null );
  +            mb.recycle();
               return;
           }
           mb.setBytes( buf, pos, length );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org