Guard against wrong packet types being passed into AddNewClient.

Actually, the exception handler seems to be a valid execution
path here, this needs some love.
This commit is contained in:
Melanie Thielker
2008-07-23 01:16:01 +00:00
parent e09ff343fb
commit e1c6563174

View File

@@ -380,6 +380,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
//Slave regions don't accept new clients
if (m_localScene.Region_Status != RegionStatus.SlaveScene)
{
if (!(packet is UseCircuitCodePacket))
return;
UseCircuitCodePacket useCircuit = (UseCircuitCodePacket) packet;
lock (clientCircuits)
{