Right.
But you forgot to free the memory.
I've applied similar solution at r201.

On Fri, Jun 17, 2011 at 2:55 PM, Jonathan Giannuzzi
<jonat...@giannuzzi.be> wrote:
> Hello,
> When using libp11 to wrap around the AET SafeSign PKCS#11 library, C_GetInfo
> fails with CKR_MUTEX_BAD. This is because an empty CK_C_INITIALIZE_ARGS
> structure is passed to C_Initialize.
> I made a change in PKCS11_CTX_load so that when no init_args have been set,
> no CK_C_INITIALIZE_ARGS is given to C_Initialize.
> It should not break any other P11 library loading.
> Cheers,
> Jonathan
> _______________________________________________
> opensc-devel mailing list
> opensc-devel@lists.opensc-project.org
> http://www.opensc-project.org/mailman/listinfo/opensc-devel
>
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to