Skip to content
Snippets Groups Projects
Commit 4bbb8bc2 authored by Fredrik Thulin's avatar Fredrik Thulin
Browse files

rpc_C_Finalize: Change order of pReserved-check.

This matches the PKCS#11 specification better, and also matches
the test cases for softhsm.
parent 2d761054
No related branches found
No related tags found
No related merge requests found
......@@ -1304,8 +1304,8 @@ static CK_RV rpc_C_Finalize(CK_VOID_PTR reserved)
CK_RV ret;
debug(("C_Finalize: enter"));
return_val_if_fail(! reserved, CKR_ARGUMENTS_BAD);
return_val_if_fail(pkcs11_initialized, CKR_CRYPTOKI_NOT_INITIALIZED);
return_val_if_fail(!reserved, CKR_ARGUMENTS_BAD);
pthread_mutex_lock(&init_mutex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment