mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-20 21:39:41 +00:00
Core: allow NULL argument to stored_namemap_free().
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/10488)
This commit is contained in:
parent
e44192d14b
commit
bd65afdb21
@ -72,9 +72,11 @@ static void stored_namemap_free(void *vnamemap)
|
|||||||
{
|
{
|
||||||
OSSL_NAMEMAP *namemap = vnamemap;
|
OSSL_NAMEMAP *namemap = vnamemap;
|
||||||
|
|
||||||
/* Pretend it isn't stored, or ossl_namemap_free() will do nothing */
|
if (namemap != NULL) {
|
||||||
namemap->stored = 0;
|
/* Pretend it isn't stored, or ossl_namemap_free() will do nothing */
|
||||||
ossl_namemap_free(namemap);
|
namemap->stored = 0;
|
||||||
|
ossl_namemap_free(namemap);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const OPENSSL_CTX_METHOD stored_namemap_method = {
|
static const OPENSSL_CTX_METHOD stored_namemap_method = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user