aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/PacketPool.cs
diff options
context:
space:
mode:
authorMW2008-03-20 15:33:08 +0000
committerMW2008-03-20 15:33:08 +0000
commitf61ea1998e07858a7553b2a805cfc3647aa89a5a (patch)
tree58d66aff8966297a317e0b2cee516a04ae15d548 /OpenSim/Framework/PacketPool.cs
parentAnother poxy patch which consists mainly of logging changes (some already com... (diff)
downloadopensim-SC_OLD-f61ea1998e07858a7553b2a805cfc3647aa89a5a.zip
opensim-SC_OLD-f61ea1998e07858a7553b2a805cfc3647aa89a5a.tar.gz
opensim-SC_OLD-f61ea1998e07858a7553b2a805cfc3647aa89a5a.tar.bz2
opensim-SC_OLD-f61ea1998e07858a7553b2a805cfc3647aa89a5a.tar.xz
Added back a fix that lbsa71 did aqes ago to fix a buffer overflow in the packetpool, which somewhere through time got lost/reverted
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/PacketPool.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Framework/PacketPool.cs b/OpenSim/Framework/PacketPool.cs
index 7b67f0b..31548a0 100644
--- a/OpenSim/Framework/PacketPool.cs
+++ b/OpenSim/Framework/PacketPool.cs
@@ -110,9 +110,10 @@ namespace OpenSim.Framework
110 return packet; 110 return packet;
111 } 111 }
112 112
113 private byte[] decoded_header = new byte[10]; 113 // private byte[] decoded_header = new byte[10];
114 private PacketType GetType(byte[] bytes) 114 private PacketType GetType(byte[] bytes)
115 { 115 {
116 byte[] decoded_header = new byte[10 + 8];
116 ushort id; 117 ushort id;
117 libsecondlife.PacketFrequency freq; 118 libsecondlife.PacketFrequency freq;
118 119