Correct a typo (basically, one can't just replace 'memset' with
authorRichard Levitte <levitte@openssl.org>
Thu, 22 May 2003 09:35:46 +0000 (09:35 +0000)
committerRichard 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

index 334e0bbfb1ad7b28eb96a14ab17f7ebf520e2dea..ad6d31f0f2d586e1419b85abf947710a7021245c 100644 (file)
@@ -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