Fix a race causing a buffer overflow under moderate load

This commit is contained in:
Melanie Thielker
2008-07-23 14:26:08 +00:00
parent 80d8e2889e
commit 76d8cceb92

View File

@@ -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;
}
}