From 64c874a9519e734865358179c85d4dedab4c899c Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 28 Jul 2009 18:46:45 +0000 Subject: Fix a null data block in DirClassifiedReply packet, preventing a session crash in search. Fixes Mantis #3952 --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 30d6fb1..441188e 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -10243,11 +10243,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP packet.QueryReplies = new DirClassifiedReplyPacket.QueryRepliesBlock[ data.Length]; + packet.StatusData = new DirClassifiedReplyPacket.StatusDataBlock[ + data.Length]; int i = 0; foreach (DirClassifiedReplyData d in data) { packet.QueryReplies[i] = new DirClassifiedReplyPacket.QueryRepliesBlock(); + packet.StatusData[i] = new DirClassifiedReplyPacket.StatusDataBlock(); packet.QueryReplies[i].ClassifiedID = d.classifiedID; packet.QueryReplies[i].Name = Utils.StringToBytes(d.name); @@ -10255,6 +10258,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP packet.QueryReplies[i].CreationDate = d.creationDate; packet.QueryReplies[i].ExpirationDate = d.expirationDate; packet.QueryReplies[i].PriceForListing = d.price; + packet.StatusData[i].Status = d.Status; i++; } -- cgit v1.1