Correct a typo (basically, one can't just replace 'memset' with
'OPENSSL_cleanse', there's an argument to remove as well).
This commit is contained in:
parent
fd37856472
commit
0a02757b03
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue