1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/test/src/math/ec/test/ECPointTest.cs b/crypto/test/src/math/ec/test/ECPointTest.cs
index 8430f437d..2a62b7740 100644
--- a/crypto/test/src/math/ec/test/ECPointTest.cs
+++ b/crypto/test/src/math/ec/test/ECPointTest.cs
@@ -483,7 +483,9 @@ namespace Org.BouncyCastle.Math.EC.Tests
CollectionUtilities.AddRange(names, ECNamedCurveTable.Names);
CollectionUtilities.AddRange(names, CustomNamedCurves.Names);
- foreach (string name in names)
+ ISet uniqNames = new HashSet(names);
+
+ foreach (string name in uniqNames)
{
X9ECParameters x9ECParameters = ECNamedCurveTable.GetByName(name);
if (x9ECParameters != null)
|