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

This commit is contained in:
Teravus Ovares
2008-10-19 01:06:50 +00:00
parent 692f4259fb
commit 6362760d30

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)