Don't load same config file twice.
[openssl.git] / apps / srp.c
index 48ef85ded3c839937098879d21f4853b5eac94c9..14f837f3605cdd58061c11576c0d6007ba65d279 100644 (file)
@@ -359,7 +359,7 @@ int srp_main(int argc, char **argv)
         conf = app_load_config(configfile);
         if (conf == NULL)
             goto end;
         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 */
             goto end;
 
         /* Lets get the config section we are using */