summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2010-02-14 00:16:23 +0000
committerStef Walter <stef@memberwebs.com>2010-02-14 00:16:23 +0000
commit205f968b122ec1a72b2299223a1938acaf4098aa (patch)
tree923151d98b4ff8dd2c55b4e12ad7d041c241a75f /src
parent5f565cd945f9a9014fa86ad861a2ee9435edec38 (diff)
Don't try to test tokens that are not yet initialized.
Diffstat (limited to 'src')
-rw-r--r--src/session.c2
1 files changed, 1 insertions, 1 deletions
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);