Fix possible bug in PGPPublicKey.removeCert()
The method looped over a list and removed from it.
This can lead to items being skipped.
I fixed it by inverting the loop direction
@@ -969,7 +969,7 @@ private static PGPPublicKey removeCert(
PGPPublicKey returnKey = new PGPPublicKey(key);
boolean found = false;
- for (int i = 0; i < returnKey.ids.size(); i++)
+ for (int i = returnKey.ids.size() - 1; i >= 0; i--)
{
if (id.equals(returnKey.ids.get(i)))
{
