projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f3930b
)
Ensure CT_POLICY_EVAL_CTX_free behaves properly with a NULL arg
author
Matt Caswell
<matt@openssl.org>
Mon, 22 Aug 2016 21:21:30 +0000
(22:21 +0100)
committer
Matt Caswell
<matt@openssl.org>
Mon, 22 Aug 2016 23:19:15 +0000
(
00:19
+0100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
crypto/ct/ct_policy.c
patch
|
blob
|
history
diff --git
a/crypto/ct/ct_policy.c
b/crypto/ct/ct_policy.c
index 8bc9133fbfa71ae6faf1033a98dcbf7c538ad2c6..33738de103a367f371378c27ef7fd5c9596265d4 100644
(file)
--- 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);