Make genrsa work again.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 26 Jul 2009 16:06:41 +0000 (16:06 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 26 Jul 2009 16:06:41 +0000 (16:06 +0000)
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;