projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08dfbe0
)
Fix deref after null
author
ABautkin
<A.Bautkin@aladdin-rd.ru>
Thu, 16 Dec 2021 12:59:14 +0000
(15:59 +0300)
committer
Pauli
<pauli@openssl.org>
Sun, 19 Dec 2021 23:54:00 +0000
(10:54 +1100)
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)
providers/implementations/storemgmt/file_store.c
patch
|
blob
|
history
diff --git
a/providers/implementations/storemgmt/file_store.c
b/providers/implementations/storemgmt/file_store.c
index 340b01bd2c133e0e243a020cd981ff3d32bc5a60..dc93f08b107d8423e7b55daa747b641764cbdc27 100644
(file)
--- 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);