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

Fix bug caused by false field comparison in SubkeyIdentifier

This commit is contained in:
Paul Schaub 2023-09-08 15:01:34 +02:00
parent 18376f2a67
commit b8e6cd4f1c
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -31,7 +31,7 @@ class SubkeyIdentifier(
val subkeyId = subkeyFingerprint.keyId val subkeyId = subkeyFingerprint.keyId
val primaryKeyId = primaryKeyFingerprint.keyId val primaryKeyId = primaryKeyFingerprint.keyId
val isPrimaryKey = keyId == subkeyId val isPrimaryKey = primaryKeyId == subkeyId
fun matches(fingerprint: OpenPgpFingerprint) = fun matches(fingerprint: OpenPgpFingerprint) =
primaryKeyFingerprint == fingerprint || subkeyFingerprint == fingerprint primaryKeyFingerprint == fingerprint || subkeyFingerprint == fingerprint