From e4236a4233322fd3238d671c70d5e778a12149cf Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 9 May 2009 12:04:40 +0000 Subject: [PATCH] Fox a boo-boo in ExtraParams - a packet with no data blocks could crash the session. Also allow multiple data blocks. --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index b355c8983b..f9db91ca18 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -5713,9 +5713,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP handlerUpdateExtraParams = OnUpdateExtraParams; if (handlerUpdateExtraParams != null) { - handlerUpdateExtraParams(m_agentId, extraPar.ObjectData[0].ObjectLocalID, - extraPar.ObjectData[0].ParamType, - extraPar.ObjectData[0].ParamInUse, extraPar.ObjectData[0].ParamData); + for (int i = 0 ; i < extraPar.ObjectData.Length ; i++) + { + handlerUpdateExtraParams(m_agentId, extraPar.ObjectData[i].ObjectLocalID, + extraPar.ObjectData[i].ParamType, + extraPar.ObjectData[i].ParamInUse, extraPar.ObjectData[i].ParamData); + } } break; case PacketType.ObjectDuplicate: