summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-05-12 06:10:49 +0200
committerPauli <pauli@openssl.org>2021-05-13 10:00:36 +0200
commitb1423d04cdcad9dbbe2da6e4751f0895112cc977 (patch)
treed0a93f9f87d862a4b058f3c415e95f49e51d8b5f /engines
parenttest: fix thread test config file problem (diff)
downloadopenssl-b1423d04cdcad9dbbe2da6e4751f0895112cc977.tar.xz
openssl-b1423d04cdcad9dbbe2da6e4751f0895112cc977.zip
e_loader_attic: fix a use after free issue
Fixes #15116 Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15238)
Diffstat (limited to 'engines')
-rw-r--r--engines/e_loader_attic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/e_loader_attic.c b/engines/e_loader_attic.c
index 802b3d9067..4cb98280a5 100644
--- a/engines/e_loader_attic.c
+++ b/engines/e_loader_attic.c
@@ -199,6 +199,7 @@ static OSSL_STORE_INFO *new_EMBEDDED(const char *new_pem_name,
return NULL;
}
+ data->blob = embedded;
data->pem_name =
new_pem_name == NULL ? NULL : OPENSSL_strdup(new_pem_name);
@@ -207,7 +208,6 @@ static OSSL_STORE_INFO *new_EMBEDDED(const char *new_pem_name,
store_info_free(info);
info = NULL;
}
- data->blob = embedded;
return info;
}