From 20b6f25562a3c467179ec3c69f1d5e472c7da596 Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Tue, 25 Dec 2018 15:10:26 +0800 Subject: [PATCH] Bug fix --- crypto/sm9/sm9_rate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/sm9/sm9_rate.c b/crypto/sm9/sm9_rate.c index bc222cb4..d4903af1 100755 --- a/crypto/sm9/sm9_rate.c +++ b/crypto/sm9/sm9_rate.c @@ -2438,7 +2438,7 @@ static int fast_final_expo(fp12_t r, const fp12_t a, const BIGNUM *k, const BIGN "5958342662901643427453578939755302545063035311436308304691", "82434016654578246438872420442344325702149582327179867092849556861979152020042"}; BIGNUM *par[4]; - for(int i=0;i<4;++i) { + for(i=0;i<4;++i) { par[i] = BN_new(); BN_init(par[i]); if(!BN_dec2bn(&par[i], power_p2[i])){