From 40d5d67842948fbf904eb73da8f09a2ebcd2e243 Mon Sep 17 00:00:00 2001 From: djm <> Date: Mon, 6 Apr 2009 06:30:08 +0000 Subject: import of OpenSSL 0.9.8k --- src/lib/libcrypto/rsa/rsa_x931g.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/rsa') diff --git a/src/lib/libcrypto/rsa/rsa_x931g.c b/src/lib/libcrypto/rsa/rsa_x931g.c index c640cc2ec9..bf94f8be7a 100644 --- a/src/lib/libcrypto/rsa/rsa_x931g.c +++ b/src/lib/libcrypto/rsa/rsa_x931g.c @@ -79,9 +79,9 @@ int RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1, BIGNUM *q2, goto err; ctx = BN_CTX_new(); - BN_CTX_start(ctx); if (!ctx) goto err; + BN_CTX_start(ctx); r0 = BN_CTX_get(ctx); r1 = BN_CTX_get(ctx); @@ -190,7 +190,7 @@ int RSA_X931_derive_ex(RSA *rsa, BIGNUM *p1, BIGNUM *p2, BIGNUM *q1, BIGNUM *q2, if (ctx2) BN_CTX_free(ctx2); /* If this is set all calls successful */ - if (rsa->iqmp != NULL) + if (rsa && rsa->iqmp != NULL) return 1; return 0; -- cgit v1.2.3-55-g6feb