mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-16 19:39:40 +00:00
Don't load same config file twice.
RT#4215 Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
727ee8cfeb
commit
c821defc3f
@ -479,7 +479,7 @@ end_of_options:
|
|||||||
|
|
||||||
if ((conf = app_load_config(configfile)) == NULL)
|
if ((conf = app_load_config(configfile)) == NULL)
|
||||||
goto end;
|
goto end;
|
||||||
if (!app_load_modules(conf))
|
if (configfile != default_config_file && !app_load_modules(conf))
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
/* Lets get the config section we are using */
|
/* Lets get the config section we are using */
|
||||||
|
@ -386,7 +386,7 @@ int req_main(int argc, char **argv)
|
|||||||
if (verbose)
|
if (verbose)
|
||||||
BIO_printf(bio_err, "Using configuration from %s\n", template);
|
BIO_printf(bio_err, "Using configuration from %s\n", template);
|
||||||
req_conf = app_load_config(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;
|
goto end;
|
||||||
|
|
||||||
if (req_conf != NULL) {
|
if (req_conf != NULL) {
|
||||||
|
@ -359,7 +359,7 @@ int srp_main(int argc, char **argv)
|
|||||||
conf = app_load_config(configfile);
|
conf = app_load_config(configfile);
|
||||||
if (conf == NULL)
|
if (conf == NULL)
|
||||||
goto end;
|
goto end;
|
||||||
if (!app_load_modules(conf))
|
if (configfile != default_config_file && !app_load_modules(conf))
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
/* Lets get the config section we are using */
|
/* Lets get the config section we are using */
|
||||||
|
@ -339,7 +339,7 @@ int ts_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
conf = load_config_file(configfile);
|
conf = load_config_file(configfile);
|
||||||
if (!app_load_modules(conf))
|
if (configfile != default_config_file && !app_load_modules(conf))
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
/* Check parameter consistency and execute the appropriate function. */
|
/* Check parameter consistency and execute the appropriate function. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user