check return value
This commit is contained in:
parent
3129acbd83
commit
b3f6325988
@ -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,
|
ret = BN_BLINDING_create_param(NULL, e, rsa->n, ctx,
|
||||||
rsa->meth->bn_mod_exp, rsa->_method_mod_n);
|
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());
|
BN_BLINDING_set_thread_id(ret, CRYPTO_thread_id());
|
||||||
err:
|
err:
|
||||||
BN_CTX_end(ctx);
|
BN_CTX_end(ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user