Fix argument processing error from the option parsing change over.
[openssl.git] / apps / ca.c
index 437a375427ef6e86f79beb2acdebc409c2bbecab..a0f9f7955a22da2881d4c38c5aa7d2074c8f0874 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -325,6 +325,7 @@ opthelp:
                 ret = 0;
                 goto end;
             case OPT_IN:
+               req = 1;
                 infile = opt_arg();
                 break;
             case OPT_OUT:
@@ -485,6 +486,8 @@ end_of_options:
     BIO_printf(bio_err, "Using configuration from %s\n", configfile);
     if ((conf = app_load_config(configfile)) == NULL)
         goto end;
+    if (!app_load_modules(conf))
+        goto end;
 
     /* Lets get the config section we are using */
     if (section == NULL) {