Skip to content
Snippets Groups Projects
Commit 76194763 authored by Corentin Chary's avatar Corentin Chary Committed by Corentin Chary
Browse files

pkcs11-proxy: exit gracefully when no socket is defined

parent 6d83d2fe
No related branches found
No related tags found
No related merge requests found
...@@ -1258,6 +1258,9 @@ static CK_RV rpc_C_Initialize(CK_VOID_PTR init_args) ...@@ -1258,6 +1258,9 @@ static CK_RV rpc_C_Initialize(CK_VOID_PTR init_args)
sizeof(pkcs11_socket_path), sizeof(pkcs11_socket_path),
"%s.pkcs11", path); "%s.pkcs11", path);
pkcs11_socket_path[sizeof(pkcs11_socket_path) - 1] = 0; pkcs11_socket_path[sizeof(pkcs11_socket_path) - 1] = 0;
} else {
ret = CKR_FUNCTION_NOT_SUPPORTED;
goto done;
} }
} }
......
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