From e1a8ac495b5a741b3c0a5827e2b1d9609f68d163 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bodo=20M=C3=B6ller?= Date: Thu, 9 Nov 2000 16:39:01 +0000 Subject: [PATCH] tmp2 is not used in BN_mod_mul_montgomery. --- crypto/bn/bn_mont.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c index 202eec4462..99e7c623e2 100644 --- a/crypto/bn/bn_mont.c +++ b/crypto/bn/bn_mont.c @@ -77,12 +77,9 @@ int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX_start(ctx); tmp = BN_CTX_get(ctx); - tmp2 = BN_CTX_get(ctx); - if (tmp == NULL || tmp2 == NULL) goto err; + if (tmp == NULL) goto err; bn_check_top(tmp); - bn_check_top(tmp2); - if (a == b) { if (!BN_sqr(tmp,a,ctx)) goto err; -- 2.34.1