From 03385a44198baea6903a561198a08f459708714d Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Fri, 9 May 2014 23:29:11 +0200 Subject: [PATCH] rand_bn: fix call to zeromem() --- src/math/rand_bn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/rand_bn.c b/src/math/rand_bn.c index c066501..39ff73c 100755 --- a/src/math/rand_bn.c +++ b/src/math/rand_bn.c @@ -44,7 +44,7 @@ int rand_bn_bits(void *N, int bits, prng_state *prng, int wprng) cleanup: #ifdef LTC_CLEAN_STACK - zeromem(buf, len); + zeromem(buf, bytes); #endif XFREE(buf); return res;