mirror of
https://github.com/openssl/openssl.git
synced 2025-04-06 20:20:50 +08:00
allow EVP_PKEY_CTX_free(NULL)
This commit is contained in:
parent
c209a35820
commit
0d5ac5a738
@ -289,6 +289,8 @@ int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth)
|
||||
|
||||
void EVP_PKEY_CTX_free(EVP_PKEY_CTX *ctx)
|
||||
{
|
||||
if (ctx == NULL)
|
||||
return;
|
||||
if (ctx->pmeth && ctx->pmeth->cleanup)
|
||||
ctx->pmeth->cleanup(ctx);
|
||||
if (ctx->pkey)
|
||||
|
Loading…
x
Reference in New Issue
Block a user