From 6362760d303ea728b0033f5d9e5aa600336556ba Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 19 Oct 2008 01:06:50 +0000 Subject: * Null check before UseCircuitCode Check or the server crashes on packet loss! --- OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 22666f4..3648575 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs @@ -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) -- cgit v1.1