rand_bn: fix call to zeromem()

This commit is contained in:
Steffen Jaeckel 2014-05-09 23:29:11 +02:00
parent ca42862d52
commit 03385a4419

View File

@ -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;