Fix to the -revoke option in ca. It was leaking memory, crashing and just
[openssl.git] / apps / x509.c
index a7f25f0..f56244c 100644 (file)
@@ -268,6 +268,7 @@ int MAIN(int argc, char **argv)
                        if (--argc < 1) goto bad;
                        CAfile= *(++argv);
                        CA_flag= ++num;
+                       need_rand = 1;
                        }
                else if (strcmp(*argv,"-CAkey") == 0)
                        {