Update from 1.0.0-stable.
[oweals/openssl.git] / apps / req.c
index f58e65ec852f9d87177d48685be32fa8b3146c0f..5ed08960c1dcf9fb128375fe083b49eba93bae3a 100644 (file)
@@ -719,8 +719,7 @@ bad:
                           message */
                        goto end;
                        }
-               if (EVP_PKEY_type(pkey->type) == EVP_PKEY_DSA || 
-                       EVP_PKEY_type(pkey->type) == EVP_PKEY_EC)
+               else
                        {
                        char *randfile = NCONF_get_string(req_conf,SECTION,"RANDFILE");
                        if (randfile == NULL)