]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - ssharcf.c
Replace some 'sfree' calls of bignums with the proper 'freebn'.
[PuTTY_svn.git] / ssharcf.c
index 6bfbd8959531ee63a5524b22542454aba0d8a8e0..06f235c5be069ab7d70aaedc1be7f4d910088ed4 100644 (file)
--- a/ssharcf.c
+++ b/ssharcf.c
@@ -75,7 +75,7 @@ static void arcfour_stir(ArcfourContext *ctx)
     unsigned char *junk = snewn(1536, unsigned char);
     memset(junk, 0, 1536);
     arcfour_block(ctx, junk, 1536);
-    memset(junk, 0, 1536);
+    smemclr(junk, 1536);
     sfree(junk);
 }