Skip to content

Commit

Permalink
Don't load same config file twice.
Browse files Browse the repository at this point in the history
RT#4215

Reviewed-by: Richard Levitte <[email protected]>
  • Loading branch information
snhenson committed May 16, 2016
1 parent 727ee8c commit c821def
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/ca.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ int ca_main(int argc, char **argv)

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 */
Expand Down
2 changes: 1 addition & 1 deletion apps/req.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ int req_main(int argc, char **argv)
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) {
Expand Down
2 changes: 1 addition & 1 deletion apps/srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ int srp_main(int argc, char **argv)
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 */
Expand Down
2 changes: 1 addition & 1 deletion apps/ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ int ts_main(int argc, char **argv)
}

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. */
Expand Down

0 comments on commit c821def

Please sign in to comment.