mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-23 04:42:06 +01:00
Fix equality check in CallbackBasedKeyringProtector
This commit is contained in:
parent
e661908c5f
commit
8c041e6856
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ public class CallbackBasedKeyringProtector implements SecretKeyRingProtector2 {
|
|||
@Override
|
||||
public PBESecretKeyEncryptor getEncryptor(PGPSecretKey key) throws PGPException {
|
||||
Passphrase passphrase = lookupPassphraseInCache(key);
|
||||
if (passphrase != null) {
|
||||
if (passphrase == null) {
|
||||
passphrase = callback.getPassphraseFor(key);
|
||||
passphraseCache.put(key.getKeyID(), passphrase);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue