RT#4215
Reviewed-by: Richard Levitte <levitte@openssl.org>
if ((conf = app_load_config(configfile)) == NULL)
goto end;
- if (!app_load_modules(conf))
+ if (configfile != default_config_file && !app_load_modules(conf))
goto end;
/* Lets get the config section we are using */
if (verbose)
BIO_printf(bio_err, "Using configuration from %s\n", template);
req_conf = app_load_config(template);
- if (!app_load_modules(req_conf))
+ if (template != default_config_file && !app_load_modules(req_conf))
goto end;
if (req_conf != NULL) {
conf = app_load_config(configfile);
if (conf == NULL)
goto end;
- if (!app_load_modules(conf))
+ if (configfile != default_config_file && !app_load_modules(conf))
goto end;
/* Lets get the config section we are using */
}
conf = load_config_file(configfile);
- if (!app_load_modules(conf))
+ if (configfile != default_config_file && !app_load_modules(conf))
goto end;
/* Check parameter consistency and execute the appropriate function. */