From 9be34ee5c8576539a929d5b396ad071aed525f43 Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 18 Sep 2017 06:52:13 +1000 Subject: [PATCH] Null pointer used. Address coverity report of null pointer being dereferenced. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4381) --- crypto/ct/ct_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ct/ct_log.c b/crypto/ct/ct_log.c index ec6fa384d5..d442322e26 100644 --- a/crypto/ct/ct_log.c +++ b/crypto/ct/ct_log.c @@ -199,7 +199,7 @@ int CTLOG_STORE_load_file(CTLOG_STORE *store, const char *file) CTLOG_STORE_LOAD_CTX* load_ctx = ctlog_store_load_ctx_new(); if (load_ctx == NULL) - goto end; + return 0; load_ctx->log_store = store; load_ctx->conf = NCONF_new(NULL); if (load_ctx->conf == NULL) -- 2.25.1