projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd37856
)
Correct a typo (basically, one can't just replace 'memset' with
author
Richard Levitte
<levitte@openssl.org>
Thu, 22 May 2003 09:35:46 +0000
(09:35 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 22 May 2003 09:35:46 +0000
(09:35 +0000)
'OPENSSL_cleanse', there's an argument to remove as well).
crypto/rand/md_rand.c
patch
|
blob
|
history
diff --git
a/crypto/rand/md_rand.c
b/crypto/rand/md_rand.c
index 334e0bbfb1ad7b28eb96a14ab17f7ebf520e2dea..ad6d31f0f2d586e1419b85abf947710a7021245c 100644
(file)
--- a/
crypto/rand/md_rand.c
+++ b/
crypto/rand/md_rand.c
@@
-292,7
+292,7
@@
static void ssleay_rand_add(const void *buf, int num, double add)
st_idx=0;
}
}
- OPENSSL_cleanse((char *)&m,
0,
sizeof(m));
+ OPENSSL_cleanse((char *)&m,sizeof(m));
if (!do_not_lock) CRYPTO_w_lock(CRYPTO_LOCK_RAND);
/* Don't just copy back local_md into md -- this could mean that
@@
-493,7
+493,7
@@
static int ssleay_rand_bytes(unsigned char *buf, int num)
MD_Final(md,&m);
CRYPTO_w_unlock(CRYPTO_LOCK_RAND);
- OPENSSL_cleanse(&m,
0,
sizeof(m));
+ OPENSSL_cleanse(&m,sizeof(m));
if (ok)
return(1);
else