summaryrefslogtreecommitdiffstats
path: root/crypto/ct
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2017-09-05 17:21:38 -0400
committerRich Salz <rsalz@openssl.org>2017-09-06 09:52:16 -0400
commitd3c3dfc5778ab2cca0d25c5959c8b814a334addb (patch)
tree30a8881804bdc1fe38e0d61bc282fd0e8976c81b /crypto/ct
parentfa4b82cc7cc556c03c652d40bd966ef3d4445592 (diff)
Add checks for alloc failing.
Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/4341)
Diffstat (limited to 'crypto/ct')
-rw-r--r--crypto/ct/ct_log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ct/ct_log.c b/crypto/ct/ct_log.c
index 6db4c3eba1..ec6fa384d5 100644
--- a/crypto/ct/ct_log.c
+++ b/crypto/ct/ct_log.c
@@ -198,6 +198,8 @@ int CTLOG_STORE_load_file(CTLOG_STORE *store, const char *file)
char *enabled_logs;
CTLOG_STORE_LOAD_CTX* load_ctx = ctlog_store_load_ctx_new();
+ if (load_ctx == NULL)
+ goto end;
load_ctx->log_store = store;
load_ctx->conf = NCONF_new(NULL);
if (load_ctx->conf == NULL)