1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-19 02:42: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 8fe9d250a8
commit 9ee0f09b8d
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

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