1
0
mirror of https://github.com/JKorf/CryptoExchange.Net.git synced 2026-08-22 13:52:54 +00:00

Added locking of SecureString, wasn't thread safe

This commit is contained in:
JKorf
2018-08-16 08:24:54 +02:00
parent 5328695f5f
commit 00456ea6d2
+3
View File
@@ -30,6 +30,8 @@ namespace CryptoExchange.Net
} }
public static string GetString(this SecureString source) public static string GetString(this SecureString source)
{
lock (source)
{ {
string result = null; string result = null;
int length = source.Length; int length = source.Length;
@@ -55,3 +57,4 @@ namespace CryptoExchange.Net
} }
} }
} }
}