aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/mainproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index a61325aba..2b2d29dc2 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -395,7 +395,7 @@ proc_pubkey_enc( CTX c, PACKET *pkt )
experience if wildcard keyids are used. */
if ( !c->dek && ((!enc->keyid[0] && !enc->keyid[1])
|| opt.try_all_secrets
- || !seckey_available( enc->keyid )) ) {
+ || have_secret_key_with_kid (enc->keyid)) ) {
if( opt.list_only )
result = -1;
else {