projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29604f4
)
coverity 1484912: Null pointer dereferences (NULL_RETURNS)
author
Pauli
<pauli@openssl.org>
Sun, 23 May 2021 23:35:08 +0000
(09:35 +1000)
committer
Pauli
<pauli@openssl.org>
Thu, 27 May 2021 10:29:24 +0000
(20:29 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15425)
crypto/evp/evp_fetch.c
patch
|
blob
|
history
diff --git
a/crypto/evp/evp_fetch.c
b/crypto/evp/evp_fetch.c
index e71d827d4b898b75990e65a62532396d7d6857e5..f628eb2faebc6215b433568dfd72ac95636a2bc2 100644
(file)
--- a/
crypto/evp/evp_fetch.c
+++ b/
crypto/evp/evp_fetch.c
@@
-504,6
+504,9
@@
char *evp_get_global_properties_str(OSSL_LIB_CTX *libctx, int loadconfig)
char *propstr = NULL;
size_t sz;
+ if (plp == NULL)
+ return OPENSSL_strdup("");
+
sz = ossl_property_list_to_string(libctx, *plp, NULL, 0);
if (sz == 0) {
ERR_raise(ERR_LIB_EVP, ERR_R_INTERNAL_ERROR);