Introduce a new utility function smemclr(), which memsets things to
[sgt/putty] / sshbn.c
diff --git a/sshbn.c b/sshbn.c
index 484c423..999817d 100644 (file)
--- a/sshbn.c
+++ b/sshbn.c
@@ -148,7 +148,7 @@ void freebn(Bignum b)
     /*
      * Burn the evidence, just in case.
      */
-    memset(b, 0, sizeof(b[0]) * (b[0] + 1));
+    smemclr(b, sizeof(b[0]) * (b[0] + 1));
     sfree(b);
 }