From: Nils Larsch Date: Wed, 1 Jun 2005 22:35:01 +0000 (+0000) Subject: check return value X-Git-Tag: OpenSSL_0_9_8k^2~2059 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b3f6325988c3715fbcffcbc065d280e1ff3fc2bd;p=oweals%2Fopenssl.git check return value --- 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);