Fix a race causing a buffer overflow under moderate load

0.6.0-stable
Melanie Thielker 2008-07-23 14:26:08 +00:00
parent 80d8e2889e
commit 76d8cceb92
1 changed files with 1 additions and 1 deletions

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