summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-05-24 01:35:08 +0200
committerPauli <pauli@openssl.org>2021-05-27 12:29:24 +0200
commit72f62f4408d2a4e75c58706d41775e4f8f7f0034 (patch)
tree7e25c0114582f114de8ca49633aac186500756ae /crypto
parentcoverity 1484913: Null pointer dereferences (REVERSE_INULL) (diff)
downloadopenssl-72f62f4408d2a4e75c58706d41775e4f8f7f0034.tar.xz
openssl-72f62f4408d2a4e75c58706d41775e4f8f7f0034.zip
coverity 1484912: Null pointer dereferences (NULL_RETURNS)
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15425)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/evp/evp_fetch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/evp/evp_fetch.c b/crypto/evp/evp_fetch.c
index e71d827d4b..f628eb2fae 100644
--- 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);