Stop spurious "unable to load config info" errors in req
[openssl.git] / apps / req.c
index 9611431fe7072a45747b06657a5156112ab91ebc..54ddfab0f4f94b59d3e2de7089c236eedb22208e 100644 (file)
@@ -479,7 +479,7 @@ bad:
                req_conf=config;
                BIO_printf(bio_err,"Using configuration from %s\n",
                        default_config_file);
-               if (i == 0)
+               if (req_conf == NULL)
                        {
                        BIO_printf(bio_err,"Unable to load config info\n");
                        }