Fixes
0c2a196af8ab9c12da27
Fixes Coverity issue
1675312
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29306)
if (name == NULL && system)
name = "system_default";
+ if (name == NULL) {
+ ERR_raise_data(ERR_LIB_SSL, SSL_R_INVALID_CONFIGURATION_NAME,
+ "name not specified (name == NULL)");
+ goto err;
+ }
+
libctx = s != NULL ? s->ctx->libctx: ctx->libctx;
imod = ssl_do_lookup_module(libctx);
if (!conf_ssl_name_find(imod, name, &idx)) {