summaryrefslogtreecommitdiffstats
path: root/crypto/core_namemap.c
diff options
context:
space:
mode:
authorVladimĂ­r Kotal <vladimir.kotal@oracle.com>2023-06-16 16:25:58 +0200
committerPauli <pauli@openssl.org>2023-06-18 16:55:09 +1000
commitd808fa015132d63f06f555649bc4b3f0e2e5124e (patch)
tree5b6d3735342558b886d8adfff62f720879f0c4b0 /crypto/core_namemap.c
parent6ea4da6e4d03cd9591805e166cfd94a374c33628 (diff)
return immediately if namemap is NULL
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21223)
Diffstat (limited to 'crypto/core_namemap.c')
-rw-r--r--crypto/core_namemap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/core_namemap.c b/crypto/core_namemap.c
index e2909d7197..25e0eb90eb 100644
--- a/crypto/core_namemap.c
+++ b/crypto/core_namemap.c
@@ -137,6 +137,9 @@ int ossl_namemap_doall_names(const OSSL_NAMEMAP *namemap, int number,
cbdata.number = number;
cbdata.found = 0;
+ if (namemap == NULL)
+ return 0;
+
/*
* We collect all the names first under a read lock. Subsequently we call
* the user function, so that we're not holding the read lock when in user