1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-30 08:12:06 +01:00

DFix KeyRingInfo.getValidAndExpiredUserIds considering unbound user-ids as valid

This commit is contained in:
Paul Schaub 2022-03-13 16:52:57 +01:00
parent 26c804b2dd
commit 661c043cdc
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -347,6 +347,11 @@ public class KeyRingInfo {
PGPSignature certification = signatures.userIdCertifications.get(userId); PGPSignature certification = signatures.userIdCertifications.get(userId);
PGPSignature revocation = signatures.userIdRevocations.get(userId); PGPSignature revocation = signatures.userIdRevocations.get(userId);
// Unbound user-id
if (certification == null) {
continue;
}
// Not revoked -> valid // Not revoked -> valid
if (revocation == null) { if (revocation == null) {
probablyExpired.add(userId); probablyExpired.add(userId);