From: ABautkin Date: Thu, 16 Dec 2021 12:59:14 +0000 (+0300) Subject: Fix deref after null X-Git-Tag: openssl-3.2.0-alpha1~3179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68b78dd7e40f57064b0f24728d8b544fe583599c;p=thirdparty%2Fopenssl.git Fix deref after null ctx may be NULL at 178 line CLA: trivial Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/17293) --- diff --git a/providers/implementations/storemgmt/file_store.c b/providers/implementations/storemgmt/file_store.c index 340b01bd2c1..dc93f08b107 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);