Don't load same config file twice.
[openssl.git] / apps / ca.c
index 880e0b9a19f7fb58ff3d4a4bbd92d139810bee80..ac71e08837bcd01956b7cfe78578bd39007d3f96 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -479,7 +479,7 @@ end_of_options:
 
     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 */