mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user