projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ea4da6
)
return immediately if namemap is NULL
author
Vladimír Kotal
<vladimir.kotal@oracle.com>
Fri, 16 Jun 2023 14:25:58 +0000
(16:25 +0200)
committer
Pauli
<pauli@openssl.org>
Sun, 18 Jun 2023 06:55:09 +0000
(16:55 +1000)
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21223)
crypto/core_namemap.c
patch
|
blob
|
history
diff --git
a/crypto/core_namemap.c
b/crypto/core_namemap.c
index e2909d7197834478b6694e5a1383c4fae3f307af..25e0eb90ebb716f24542f3d7ee4fa1636c7affbd 100644
(file)
--- 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