From: Richard Levitte Date: Thu, 22 May 2003 09:35:46 +0000 (+0000) Subject: Correct a typo (basically, one can't just replace 'memset' with X-Git-Tag: OpenSSL_0_9_6k~28 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a02757b03168c5fd089d6e495e3e343ea4c7f86;p=oweals%2Fopenssl.git Correct a typo (basically, one can't just replace 'memset' with 'OPENSSL_cleanse', there's an argument to remove as well). --- diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index 334e0bbfb1..ad6d31f0f2 100644 --- 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