From 178b8d0926a53d82f54d60c088f36c7bad13dc87 Mon Sep 17 00:00:00 2001 From: Pixel Tomsen Date: Thu, 13 Oct 2011 01:09:10 +0200 Subject: [PATCH] Region-UUID - can not be zero-uuid http://opensimulator.org/mantis/view.php?id=3426 --- .../LoadRegions/LoadRegionsPlugin.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs index 6e28eba1f4..1945ff2f7d 100644 --- a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs +++ b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs @@ -30,6 +30,7 @@ using System.Collections.Generic; using System.Reflection; using System.Threading; using log4net; +using OpenMetaverse; using OpenSim.Framework; using OpenSim.Framework.RegionLoader.Filesystem; using OpenSim.Framework.RegionLoader.Web; @@ -152,9 +153,20 @@ namespace OpenSim.ApplicationPlugins.LoadRegions /// True if we're sane, false if we're insane private bool CheckRegionsForSanity(RegionInfo[] regions) { - if (regions.Length <= 1) + if (regions.Length == 0) return true; + foreach (RegionInfo region in regions) + { + if (region.RegionID == UUID.Zero) + { + m_log.ErrorFormat( + "[LOAD REGIONS PLUGIN]: Region {0} has invalidate zero UUID <{1}>", + region.RegionName, region.RegionID); + return false; + } + } + for (int i = 0; i < regions.Length - 1; i++) { for (int j = i + 1; j < regions.Length; j++)