summaryrefslogtreecommitdiff
path: root/recipes-connectivity/openssl/openssl/debian_bpo8+1/valgrind.patch
blob: 2b7ec8c6aa22fe1531e459c26966471e3f6058fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
 crypto/rand/md_rand.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/crypto/rand/md_rand.c
+++ b/crypto/rand/md_rand.c
@@ -480,6 +480,7 @@ int ssleay_rand_bytes(unsigned char *buf
         MD_Update(&m, (unsigned char *)&(md_c[0]), sizeof(md_c));
 
 #ifndef PURIFY                  /* purify complains */
+#if 0
         /*
          * The following line uses the supplied buffer as a small source of
          * entropy: since this buffer is often uninitialised it may cause
@@ -489,6 +490,7 @@ int ssleay_rand_bytes(unsigned char *buf
          */
         MD_Update(&m, buf, j);
 #endif
+#endif
 
         k = (st_idx + MD_DIGEST_LENGTH / 2) - st_num;
         if (k > 0) {