mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
coverity 1484912: Null pointer dereferences (NULL_RETURNS)
Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15425)
This commit is contained in:
parent
29604f4920
commit
72f62f4408
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user