aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2019-10-06 19:51:13 +0100
committerMelanie2019-10-06 19:51:13 +0100
commitaed0eaf4d79d9cc7dedcdc7351a646bb97deec39 (patch)
treea3aa3953b86838b76d381335c94e92f4dd1f6cf4 /OpenSim
parentexplicitly remove useragentserviceconnector dns lookup, effectively removed o... (diff)
downloadopensim-SC-aed0eaf4d79d9cc7dedcdc7351a646bb97deec39.zip
opensim-SC-aed0eaf4d79d9cc7dedcdc7351a646bb97deec39.tar.gz
opensim-SC-aed0eaf4d79d9cc7dedcdc7351a646bb97deec39.tar.bz2
opensim-SC-aed0eaf4d79d9cc7dedcdc7351a646bb97deec39.tar.xz
Fix an issue where parameter parsing could lead to an exception
Diffstat (limited to '')
-rw-r--r--OpenSim/Server/Base/ServerUtils.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Server/Base/ServerUtils.cs b/OpenSim/Server/Base/ServerUtils.cs
index b020215..a21287a 100644
--- a/OpenSim/Server/Base/ServerUtils.cs
+++ b/OpenSim/Server/Base/ServerUtils.cs
@@ -227,8 +227,9 @@ namespace OpenSim.Server.Base
227 // The path for a dynamic plugin will contain ":" on Windows 227 // The path for a dynamic plugin will contain ":" on Windows
228 string[] parts = dllName.Split (new char[] {':'}); 228 string[] parts = dllName.Split (new char[] {':'});
229 229
230 if (parts [0].Length > 1) 230 if (parts.Length < 3)
231 { 231 {
232 // Linux. There will be ':' but the one we're looking for
232 dllName = parts [0]; 233 dllName = parts [0];
233 if (parts.Length > 1) 234 if (parts.Length > 1)
234 className = parts[1]; 235 className = parts[1];