projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't try to use SecureZeroMemory under Winelib, since it isn't available
[u/mdw/putty]
/
ssharcf.c
diff --git
a/ssharcf.c
b/ssharcf.c
index
6bfbd89
..
06f235c
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);
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);
}
sfree(junk);
}