Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2021-05-12 01:38:17 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2021-05-12 01:40:33 +0300
commitb80845a17652fe333145d90bc2509a732d02a517 (patch)
tree9f75628b850da6094b24bb86910bdc07fc639ec4 /Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
parent3e2103335bb825dfa212c0a05361631eb56996e3 (diff)
Enumerate items to list before modifying collection.
Diffstat (limited to 'Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs')
-rw-r--r--Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs b/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
index 1efb782d6..2d0d1fa02 100644
--- a/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
+++ b/Duplicati/Library/Backend/SSHv2/SSHv2Backend.cs
@@ -351,7 +351,7 @@ namespace Duplicati.Library.Backend
// See https://github.com/mono/mono/blob/mono-6.12.0.144/mcs/class/referencesource/System.Core/System/Security/Cryptography/ECDsaCng.cs
if (Utility.Utility.IsMono)
{
- IEnumerable<string> ecdsaKeys = client.ConnectionInfo.HostKeyAlgorithms.Keys.Where(x => x.StartsWith("ecdsa"));
+ List<string> ecdsaKeys = client.ConnectionInfo.HostKeyAlgorithms.Keys.Where(x => x.StartsWith("ecdsa")).ToList();
foreach (string key in ecdsaKeys)
{
client.ConnectionInfo.HostKeyAlgorithms.Remove(key);