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;