mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-23 03:17:58 +01:00
DFix KeyRingInfo.getValidAndExpiredUserIds considering unbound user-ids as valid
This commit is contained in:
parent
5b4018d2f0
commit
82fb93eea3
1 changed files with 5 additions and 0 deletions
|
@ -346,6 +346,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);
|
||||||
|
|
Loading…
Reference in a new issue