diff options
author | Melanie Thielker | 2009-07-28 18:46:45 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-07-28 18:46:45 +0000 |
commit | 64c874a9519e734865358179c85d4dedab4c899c (patch) | |
tree | 284765abe300c734202ecd7ee48ed5c5c66140e5 /OpenSim/Region/ClientStack | |
parent | Thank you, mcortez, for a patch to correct a folder bloat issue in the (diff) | |
download | opensim-SC-64c874a9519e734865358179c85d4dedab4c899c.zip opensim-SC-64c874a9519e734865358179c85d4dedab4c899c.tar.gz opensim-SC-64c874a9519e734865358179c85d4dedab4c899c.tar.bz2 opensim-SC-64c874a9519e734865358179c85d4dedab4c899c.tar.xz |
Fix a null data block in DirClassifiedReply packet, preventing a session
crash in search.
Fixes Mantis #3952
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
10243 | 10243 | ||
10244 | packet.QueryReplies = new DirClassifiedReplyPacket.QueryRepliesBlock[ | 10244 | packet.QueryReplies = new DirClassifiedReplyPacket.QueryRepliesBlock[ |
10245 | data.Length]; | 10245 | data.Length]; |
10246 | packet.StatusData = new DirClassifiedReplyPacket.StatusDataBlock[ | ||
10247 | data.Length]; | ||
10246 | 10248 | ||
10247 | int i = 0; | 10249 | int i = 0; |
10248 | foreach (DirClassifiedReplyData d in data) | 10250 | foreach (DirClassifiedReplyData d in data) |
10249 | { | 10251 | { |
10250 | packet.QueryReplies[i] = new DirClassifiedReplyPacket.QueryRepliesBlock(); | 10252 | packet.QueryReplies[i] = new DirClassifiedReplyPacket.QueryRepliesBlock(); |
10253 | packet.StatusData[i] = new DirClassifiedReplyPacket.StatusDataBlock(); | ||
10251 | packet.QueryReplies[i].ClassifiedID = d.classifiedID; | 10254 | packet.QueryReplies[i].ClassifiedID = d.classifiedID; |
10252 | packet.QueryReplies[i].Name = | 10255 | packet.QueryReplies[i].Name = |
10253 | Utils.StringToBytes(d.name); | 10256 | Utils.StringToBytes(d.name); |
@@ -10255,6 +10258,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
10255 | packet.QueryReplies[i].CreationDate = d.creationDate; | 10258 | packet.QueryReplies[i].CreationDate = d.creationDate; |
10256 | packet.QueryReplies[i].ExpirationDate = d.expirationDate; | 10259 | packet.QueryReplies[i].ExpirationDate = d.expirationDate; |
10257 | packet.QueryReplies[i].PriceForListing = d.price; | 10260 | packet.QueryReplies[i].PriceForListing = d.price; |
10261 | packet.StatusData[i].Status = d.Status; | ||
10258 | i++; | 10262 | i++; |
10259 | } | 10263 | } |
10260 | 10264 | ||