Skip to content

Commit

Permalink
rand_bn: fix call to zeromem()
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaeckel committed May 9, 2014
1 parent ca42862 commit 03385a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/math/rand_bn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 03385a4

Please sign in to comment.