]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - ssharcf.c
Handle packets with no type byte by returning SSH_MSG_UNIMPLEMENTED.
[PuTTY.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);
 }