Implement Oren's fix to prevent a privilege escalation with groups
parent
bb841ea9ce
commit
f93dac9239
|
@ -2232,10 +2232,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle)
|
public void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle)
|
||||||
|
{
|
||||||
|
if (agentid == AgentId)
|
||||||
{
|
{
|
||||||
m_activeGroupID = activegroupid;
|
m_activeGroupID = activegroupid;
|
||||||
m_activeGroupName = groupname;
|
m_activeGroupName = groupname;
|
||||||
m_activeGroupPowers = grouppowers;
|
m_activeGroupPowers = grouppowers;
|
||||||
|
}
|
||||||
|
|
||||||
AgentDataUpdatePacket sendAgentDataUpdate = (AgentDataUpdatePacket)PacketPool.Instance.GetPacket(PacketType.AgentDataUpdate);
|
AgentDataUpdatePacket sendAgentDataUpdate = (AgentDataUpdatePacket)PacketPool.Instance.GetPacket(PacketType.AgentDataUpdate);
|
||||||
sendAgentDataUpdate.AgentData.ActiveGroupID = activegroupid;
|
sendAgentDataUpdate.AgentData.ActiveGroupID = activegroupid;
|
||||||
|
|
Loading…
Reference in New Issue