mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Prevent a dump in the llGetLinkKey method when using LINK_ROOT in a single prim
This commit is contained in:
@@ -4007,6 +4007,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
linknum -= (m_host.ParentGroup.PrimCount) + 1;
|
||||
|
||||
if (linknum < 0)
|
||||
return UUID.Zero.ToString();
|
||||
|
||||
List<ScenePresence> avatars = GetLinkAvatars(ScriptBaseClass.LINK_SET);
|
||||
if (avatars.Count > linknum)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user