diff options
author | Ulf Möller <ulf@openssl.org> | 2001-09-05 04:45:45 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2001-09-05 04:45:45 +0000 |
commit | 3f345dc653a4e4314ab9be97274623296a866cf4 (patch) | |
tree | 70184789681904f097d00126feb99f558b8cea21 /crypto/bn | |
parent | 0dd892848e2dcc265adbb567f421c0df3e9f42cf (diff) |
bn_sqr bug fix as in main
Diffstat (limited to 'crypto/bn')
-rw-r--r-- | crypto/bn/bn_sqr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_sqr.c b/crypto/bn/bn_sqr.c index 75f4f38392..09bd3377bf 100644 --- a/crypto/bn/bn_sqr.c +++ b/crypto/bn/bn_sqr.c @@ -245,7 +245,7 @@ printf(" bn_sqr_recursive %d * %d\n",n2,n2); if (!zero) bn_sqr_recursive(&(t[n2]),t,n,p); else - memset(&(t[n2]),0,n*sizeof(BN_ULONG)); + memset(&(t[n2]),0,n2*sizeof(BN_ULONG)); bn_sqr_recursive(r,a,n,p); bn_sqr_recursive(&(r[n2]),&(a[n]),n,p); |