]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshbn.c
Fix another error-reporting bug, in which sk_newlistener would fail to
[PuTTY.git] / sshbn.c
diff --git a/sshbn.c b/sshbn.c
index 484c423f022490b030e797afbee2cd5e9f0b0372..999817db4714a3271d942b4bb97e6832c894c205 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);
 }