Check the return values where memory allocation failures may happen.

PR: 49
This commit is contained in:
Richard Levitte
2002-05-30 16:49:00 +00:00
parent 04c8e99b39
commit d66c022a1f
16 changed files with 77 additions and 47 deletions

View File

@@ -476,10 +476,10 @@ static int RSA_eay_mod_exp(BIGNUM *r0, BIGNUM *I, RSA *rsa)
int ret=0;
BN_CTX *ctx;
if ((ctx=BN_CTX_new()) == NULL) goto err;
BN_init(&m1);
BN_init(&r1);
BN_init(&vrfy);
if ((ctx=BN_CTX_new()) == NULL) goto err;
if (rsa->flags & RSA_FLAG_CACHE_PRIVATE)
{