From 76d8cceb921a08804a71220d73a970620148a742 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 23 Jul 2008 14:26:08 +0000 Subject: Fix a race causing a buffer overflow under moderate load --- OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim') 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 packet.Header.AckList[i] = ack; i++; m_PendingAcks.Remove(ack); - if (i >= 10) // That is how much space there is + if (i >= count) // That is how much space there is break; } } -- cgit v1.1