Browse Source

rand_bn: fix call to zeromem()

Steffen Jaeckel 11 years ago
parent
commit
03385a4419
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/math/rand_bn.c

+ 1 - 1
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;