diff --git a/ykcs11/ykcs11.c b/ykcs11/ykcs11.c index 9bed06a..66f2569 100644 --- a/ykcs11/ykcs11.c +++ b/ykcs11/ykcs11.c @@ -65,7 +65,7 @@ CK_DEFINE_FUNCTION(CK_RV, C_Initialize)( return CKR_FUNCTION_FAILED; } - if (parse_readers(piv_state, readers, len, slots, &n_slots, &n_slots_with_token) != CK_TRUE) + if (parse_readers(piv_state, readers, len, slots, &n_slots, &n_slots_with_token) != CKR_OK) return CKR_FUNCTION_FAILED; DBG(("Found %lu slot(s) of which %lu tokenless/unsupported", n_slots, n_slots - n_slots_with_token));