aboutsummaryrefslogtreecommitdiff
path: root/crypto/bn/bn_mont.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bn/bn_mont.c')
-rw-r--r--crypto/bn/bn_mont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c
index d07afcc..613a384 100644
--- a/crypto/bn/bn_mont.c
+++ b/crypto/bn/bn_mont.c
@@ -196,7 +196,7 @@ static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, BN_MONT_CTX *mont)
rp = r->d;
/* clear the top words of T */
- memset(&(rp[r->top]), 0, (max - r->top) * sizeof(BN_ULONG));
+ memset(&rp[r->top], 0, sizeof(*rp) * (max - r->top));
r->top = max;
n0 = mont->n0[0];