Replace the broken SPKAC certification with the correct version.
[oweals/openssl.git] / apps / genrsa.c
index 09b0b1969001e6d64f67bf88562844b19c0d0c87..5759acbf9bbe078349a430d06803b13c9d54fb21 100644 (file)
@@ -269,6 +269,10 @@ bad:
        BIO_printf(bio_err,"Generating RSA private key, %d bit long modulus\n",
                num);
 
+       rsa = RSA_new();
+       if (!rsa)
+               goto err;
+
        if (use_x931)
                {
                BIGNUM *pubexp;