提交 2b201c5c 编写于 作者: M Matt Caswell

Ensure CT_POLICY_EVAL_CTX_free behaves properly with a NULL arg

Reviewed-by: NTim Hudson <tjh@openssl.org>
上级 2f3930bc
......@@ -30,6 +30,8 @@ CT_POLICY_EVAL_CTX *CT_POLICY_EVAL_CTX_new(void)
void CT_POLICY_EVAL_CTX_free(CT_POLICY_EVAL_CTX *ctx)
{
if (ctx == NULL)
return;
X509_free(ctx->cert);
X509_free(ctx->issuer);
OPENSSL_free(ctx);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册