summaryrefslogtreecommitdiffstats
path: root/crypto/core_namemap.c
diff options
context:
space:
mode:
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