diff options
author | Melanie Thielker | 2014-04-20 10:47:31 +0200 |
---|---|---|
committer | Melanie Thielker | 2014-04-20 10:47:31 +0200 |
commit | f93dac9239dc71020f143339997b3b7abc15f69d (patch) | |
tree | d05db8fbdf61b2b7ecf016aca859960fe65eee44 /OpenSim/Region/ClientStack/Linden/UDP | |
parent | Change OfflineMessageModule to support more differentiated return values and ... (diff) | |
download | opensim-SC-f93dac9239dc71020f143339997b3b7abc15f69d.zip opensim-SC-f93dac9239dc71020f143339997b3b7abc15f69d.tar.gz opensim-SC-f93dac9239dc71020f143339997b3b7abc15f69d.tar.bz2 opensim-SC-f93dac9239dc71020f143339997b3b7abc15f69d.tar.xz |
Implement Oren's fix to prevent a privilege escalation with groups
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index f4ea975..7c62f90 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -2233,9 +2233,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2233 | 2233 | ||
2234 | public void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle) | 2234 | public void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle) |
2235 | { | 2235 | { |
2236 | m_activeGroupID = activegroupid; | 2236 | if (agentid == AgentId) |
2237 | m_activeGroupName = groupname; | 2237 | { |
2238 | m_activeGroupPowers = grouppowers; | 2238 | m_activeGroupID = activegroupid; |
2239 | m_activeGroupName = groupname; | ||
2240 | m_activeGroupPowers = grouppowers; | ||
2241 | } | ||
2239 | 2242 | ||
2240 | AgentDataUpdatePacket sendAgentDataUpdate = (AgentDataUpdatePacket)PacketPool.Instance.GetPacket(PacketType.AgentDataUpdate); | 2243 | AgentDataUpdatePacket sendAgentDataUpdate = (AgentDataUpdatePacket)PacketPool.Instance.GetPacket(PacketType.AgentDataUpdate); |
2241 | sendAgentDataUpdate.AgentData.ActiveGroupID = activegroupid; | 2244 | sendAgentDataUpdate.AgentData.ActiveGroupID = activegroupid; |