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.
0.6.0-stable
Melanie Thielker 2008-07-23 01:16:01 +00:00
parent e09ff343fb
commit e1c6563174
1 changed files with 2 additions and 0 deletions

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)
{