aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keylist.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/keylist.c')
-rw-r--r--g10/keylist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 5d08c0d53..969bf50bd 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -420,7 +420,7 @@ list_all (int secret)
memset (&stats, 0, sizeof (stats));
- hd = keydb_new (0);
+ hd = keydb_new ();
if (!hd)
rc = G10ERR_GENERAL;
else
@@ -441,7 +441,7 @@ list_all (int secret)
log_error ("keydb_get_keyblock failed: %s\n", g10_errstr (rc));
goto leave;
}
- if (secret && have_secret_key (keyblock))
+ if (secret && !have_any_secret_key (NULL, keyblock))
; /* Secret key listing requested but this isn't one. */
else
{