* Null check before UseCircuitCode Check or the server crashes on packet loss!

0.6.0-stable
Teravus Ovares 2008-10-19 01:06:50 +00:00
parent 692f4259fb
commit 6362760d30
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// If we've received a use circuit packet, then we need to decode an endpoint proxy, if one exists, before
// allowing the RecvBuffer to be overwritten by the next packet.
if (packet.Type == PacketType.UseCircuitCode)
if (packet != null && packet.Type == PacketType.UseCircuitCode)
{
epProxy = epSender;
if (proxyPortOffset != 0)