mturk 2005/02/16 03:42:46 Modified: jk/native/common jk_msg_buff.c Log: Do not log trash data when dumping ajp message. Revision Changes Path 1.28 +5 -3 jakarta-tomcat-connectors/jk/native/common/jk_msg_buff.c Index: jk_msg_buff.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_msg_buff.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- jk_msg_buff.c 6 Feb 2005 09:37:59 -0000 1.27 +++ jk_msg_buff.c 16 Feb 2005 11:42:46 -0000 1.28 @@ -372,7 +372,8 @@ for (j = 0; j < 16; j++) { unsigned char x = (msg->buf[i + j]); - + if ((i + j) >= len) + x = 0; *current++ = jk_HEX[x >> 4]; *current++ = jk_HEX[x & 0x0f]; *current++ = ' '; @@ -382,7 +383,8 @@ *current++ = ' '; for (j = 0; j < 16; j++) { unsigned char x = msg->buf[i + j]; - + if ((i + j) >= len) + x = 0; if (x > 0x20 && x < 0x7F) { *current++ = x; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]