We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0219f56 commit 932c086Copy full SHA for 932c086
src/p11_load.c
@@ -144,7 +144,7 @@ void pkcs11_CTX_unload(PKCS11_CTX *ctx)
144
{
145
PKCS11_CTX_private *cpriv = PRIVCTX(ctx);
146
147
- if (!cpriv->method) /* Module not loaded */
+ if (!cpriv->method || !cpriv->handle) /* Module not loaded */
148
return;
149
150
/* Tell the PKCS11 library to shut down */
0 commit comments