提交 0d5ac5a7 编写于 作者: N Nils Larsch

allow EVP_PKEY_CTX_free(NULL)

上级 c209a358
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册