summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/module.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/module.c b/src/module.c
index e3008f3..3959161 100644
--- a/src/module.c
+++ b/src/module.c
@@ -408,7 +408,9 @@ p11t_module_initialize(void)
if(p11t_test_unexpected)
{
rv = (p11t_module_funcs->C_Initialize) (&init_args);
- P11T_CHECK_RV("Double initialize in a row", rv, CKR_CRYPTOKI_ALREADY_INITIALIZED);
+ if (rv != CKR_CRYPTOKI_ALREADY_INITIALIZED) {
+ p11t_check_warn ("Expected CKR_CRYPTOKI_ALREADY_INITIALIZED when double initialize in a row");
+ }
}
is_initialized = 1;