summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-06-01 22:35:01 +0000
committerNils Larsch <nils@openssl.org>2005-06-01 22:35:01 +0000
commitb3f6325988c3715fbcffcbc065d280e1ff3fc2bd (patch)
tree64db52f9dca4c2ef0169aa4288386a14766ae3f4
parent3129acbd836f9cb1b397c971801ac061317beaed (diff)
check return value
-rw-r--r--crypto/rsa/rsa_lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/rsa/rsa_lib.c b/crypto/rsa/rsa_lib.c
index 7f1f94ee50..533a711eda 100644
--- a/crypto/rsa/rsa_lib.c
+++ b/crypto/rsa/rsa_lib.c
@@ -402,6 +402,11 @@ BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx)
ret = BN_BLINDING_create_param(NULL, e, rsa->n, ctx,
rsa->meth->bn_mod_exp, rsa->_method_mod_n);
+ if (ret == NULL)
+ {
+ RSAerr(RSA_F_RSA_SETUP_BLINDING, ERR_R_BN_LIB);
+ goto err;
+ }
BN_BLINDING_set_thread_id(ret, CRYPTO_thread_id());
err:
BN_CTX_end(ctx);