From 205f968b122ec1a72b2299223a1938acaf4098aa Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 14 Feb 2010 00:16:23 +0000 Subject: Don't try to test tokens that are not yet initialized. --- src/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session.c b/src/session.c index 680a6c4..8edcb08 100644 --- a/src/session.c +++ b/src/session.c @@ -86,7 +86,7 @@ test_session_user_login(CK_SLOT_ID slot) } rv = (p11t_module_funcs->C_Login)(session_ro, CKU_USER, pin, n_pin); - if(rv == CKR_USER_TYPE_INVALID) + if(rv == CKR_USER_TYPE_INVALID || rv == CKR_USER_PIN_NOT_INITIALIZED) return CONTINUE; P11T_CHECK_RV("Normal login", rv, CKR_OK); -- cgit v1.2.3