From 459a4b0bb5fcb5e1d449825a8731f810be680dbd Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Wed, 2 Jan 2008 12:12:36 +0000 Subject: [PATCH] * Fixed an issue where the PacketPool would ZeroDecodeCommand into a too small buffer. The new buffer size is based on analysis of real data, not on knowledge; this should be reviewed by the original PacketPool author. --- OpenSim/Framework/PacketPool.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs index 2b33d0b107..c65037f399 100644 --- a/OpenSim/Framework/PacketPool.cs +++ b/OpenSim/Framework/PacketPool.cs @@ -68,9 +68,10 @@ namespace OpenSim.Framework return packet; } - private byte[] decoded_header = new byte[10]; private PacketType GetType(byte[] bytes) { + byte[] decoded_header = new byte[10+8]; + ushort id; libsecondlife.PacketFrequency freq;