aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tkd/pkcs11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tkd/pkcs11.c b/tkd/pkcs11.c
index d943b87a1..42a90b7e9 100644
--- a/tkd/pkcs11.c
+++ b/tkd/pkcs11.c
@@ -1028,6 +1028,7 @@ token_init (ctrl_t ctrl, assuan_context_t ctx)
if (get_token_info (token, &tk_info) == 0)
{
if ((tk_info.flags & CKF_TOKEN_INITIALIZED) == 0
+ || (tk_info.flags & CKF_TOKEN_PRESENT) == 0
|| (tk_info.flags & CKF_USER_PIN_LOCKED) != 0)
continue;