A few more memset()s converted to OPENSSL_cleanse().
[openssl.git] / crypto / bn / bn_rand.c
index e6705f7025bd82e039a7a261f45d1b76820fce15..480817a4b6299cb80141dd0c18501647111ebe9b 100644 (file)
@@ -201,7 +201,7 @@ static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
 err:
        if (buf != NULL)
                {
-               memset(buf,0,bytes);
+               OPENSSL_cleanse(buf,bytes);
                OPENSSL_free(buf);
                }
        return(ret);