diff options
author | Melanie Thielker | 2008-07-23 14:26:08 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-07-23 14:26:08 +0000 |
commit | 76d8cceb921a08804a71220d73a970620148a742 (patch) | |
tree | 133fe6caca83082842d9266c3966b02862feaa23 | |
parent | Update svn properties. Formatting cleanup. Remove a compiler warning. (diff) | |
download | opensim-SC-76d8cceb921a08804a71220d73a970620148a742.zip opensim-SC-76d8cceb921a08804a71220d73a970620148a742.tar.gz opensim-SC-76d8cceb921a08804a71220d73a970620148a742.tar.bz2 opensim-SC-76d8cceb921a08804a71220d73a970620148a742.tar.xz |
Fix a race causing a buffer overflow under moderate load
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs | 2 |
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 | } |