mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-20 05:19:40 +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;
|
||||
|
||||
/* 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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user