diff options
author | Melanie | 2019-10-06 19:51:13 +0100 |
---|---|---|
committer | Melanie | 2019-10-06 19:51:13 +0100 |
commit | aed0eaf4d79d9cc7dedcdc7351a646bb97deec39 (patch) | |
tree | a3aa3953b86838b76d381335c94e92f4dd1f6cf4 /OpenSim | |
parent | explicitly remove useragentserviceconnector dns lookup, effectively removed o... (diff) | |
download | opensim-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.cs | 3 |
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]; |