[openssl] master update
Dr. Paul Dale
pauli at openssl.org
Thu Nov 21 22:19:10 UTC 2019
The branch master has been updated
via bd65afdb21942676e7e4ce77adaaec697624b65f (commit)
from e44192d14b0557538611de4018170d702c9709d7 (commit)
- Log -----------------------------------------------------------------
commit bd65afdb21942676e7e4ce77adaaec697624b65f
Author: Pauli <paul.dale at oracle.com>
Date: Thu Nov 21 06:55:50 2019 +1000
Core: allow NULL argument to stored_namemap_free().
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10488)
-----------------------------------------------------------------------
Summary of changes:
crypto/core_namemap.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/crypto/core_namemap.c b/crypto/core_namemap.c
index e5a17272d8..9b19d60db3 100644
--- a/crypto/core_namemap.c
+++ b/crypto/core_namemap.c
@@ -72,9 +72,11 @@ static void stored_namemap_free(void *vnamemap)
{
OSSL_NAMEMAP *namemap = vnamemap;
- /* Pretend it isn't stored, or ossl_namemap_free() will do nothing */
- namemap->stored = 0;
- ossl_namemap_free(namemap);
+ if (namemap != NULL) {
+ /* Pretend it isn't stored, or ossl_namemap_free() will do nothing */
+ namemap->stored = 0;
+ ossl_namemap_free(namemap);
+ }
}
static const OPENSSL_CTX_METHOD stored_namemap_method = {
More information about the openssl-commits
mailing list