aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP
diff options
context:
space:
mode:
authorMelanie Thielker2008-07-23 14:26:08 +0000
committerMelanie Thielker2008-07-23 14:26:08 +0000
commit76d8cceb921a08804a71220d73a970620148a742 (patch)
tree133fe6caca83082842d9266c3966b02862feaa23 /OpenSim/Region/ClientStack/LindenUDP
parentUpdate svn properties. Formatting cleanup. Remove a compiler warning. (diff)
downloadopensim-SC_OLD-76d8cceb921a08804a71220d73a970620148a742.zip
opensim-SC_OLD-76d8cceb921a08804a71220d73a970620148a742.tar.gz
opensim-SC_OLD-76d8cceb921a08804a71220d73a970620148a742.tar.bz2
opensim-SC_OLD-76d8cceb921a08804a71220d73a970620148a742.tar.xz
Fix a race causing a buffer overflow under moderate load
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
index 11abf87..791ea32 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
@@ -265,7 +265,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
265 packet.Header.AckList[i] = ack; 265 packet.Header.AckList[i] = ack;
266 i++; 266 i++;
267 m_PendingAcks.Remove(ack); 267 m_PendingAcks.Remove(ack);
268 if (i >= 10) // That is how much space there is 268 if (i >= count) // That is how much space there is
269 break; 269 break;
270 } 270 }
271 } 271 }