Skip to content

Commit d7afc76

Browse files
committed
modified so match falls back to keyID if fingerprint not null on either side, relates to github #1868
1 parent 9d43e50 commit d7afc76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pg/src/main/java/org/bouncycastle/bcpg/KeyIdentifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public boolean matches(KeyIdentifier other)
146146
return true;
147147
}
148148

149-
if (fingerprint != null)
149+
if (fingerprint != null && other.fingerprint != null)
150150
{
151151
return Arrays.constantTimeAreEqual(fingerprint, other.fingerprint);
152152
}

0 commit comments

Comments
 (0)