Commit 2b201c5c authored by Matt Caswell's avatar Matt Caswell
Browse files

Ensure CT_POLICY_EVAL_CTX_free behaves properly with a NULL arg



Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
parent 2f3930bc
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);