summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);