summaryrefslogtreecommitdiffstats
path: root/providers
diff options
context:
space:
mode:
authorABautkin <A.Bautkin@aladdin-rd.ru>2021-12-16 15:59:14 +0300
committerPauli <pauli@openssl.org>2021-12-20 10:54:00 +1100
commit68b78dd7e40f57064b0f24728d8b544fe583599c (patch)
tree127c4e26535d45c747decf2b1bf96a6ed789a683 /providers
parent08dfbe0798f57ac9e9793fdfcaff54cfdf6b3359 (diff)
Fix deref after null
ctx may be NULL at 178 line CLA: trivial Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17293)
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/storemgmt/file_store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/storemgmt/file_store.c b/providers/implementations/storemgmt/file_store.c
index 340b01bd2c..dc93f08b10 100644
--- a/providers/implementations/storemgmt/file_store.c
+++ b/providers/implementations/storemgmt/file_store.c
@@ -175,7 +175,7 @@ static void *file_open_dir(const char *path, const char *uri, void *provctx)
if ((ctx = new_file_ctx(IS_DIR, uri, provctx)) == NULL) {
ERR_raise(ERR_LIB_PROV, ERR_R_MALLOC_FAILURE);
- goto err;
+ return NULL;
}
ctx->_.dir.last_entry = OPENSSL_DIR_read(&ctx->_.dir.ctx, path);