diff --git a/crypto/ct/ct_policy.c b/crypto/ct/ct_policy.c index 8bc9133fbfa71ae6faf1033a98dcbf7c538ad2c6..33738de103a367f371378c27ef7fd5c9596265d4 100644 --- a/crypto/ct/ct_policy.c +++ b/crypto/ct/ct_policy.c @@ -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);