diff options
| author | Gregory Maxwell <[email protected]> | 2012-11-10 09:29:32 -0800 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2012-11-10 09:29:32 -0800 |
| commit | 91cee34638ae4d5cacb5fadf0adf16428ecf1332 (patch) | |
| tree | 8d745e6bfd1dd7db18b836e8a88e3b6e1a2d703c /src/util.cpp | |
| parent | Merge pull request #1977 from Diapolo/rem_printf_redef_rpc (diff) | |
| parent | make CBase58Data class use zero_after_free_allocator (diff) | |
| download | discoin-91cee34638ae4d5cacb5fadf0adf16428ecf1332.tar.xz discoin-91cee34638ae4d5cacb5fadf0adf16428ecf1332.zip | |
Merge pull request #1992 from Diapolo/no_memset
don't use memset() in privacy/security relevant code parts
Diffstat (limited to 'src/util.cpp')
| -rw-r--r-- | src/util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cpp b/src/util.cpp index 916288645..03014a5da 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -156,7 +156,7 @@ void RandAddSeedPerfmon() if (ret == ERROR_SUCCESS) { RAND_add(pdata, nSize, nSize/100.0); - memset(pdata, 0, nSize); + OPENSSL_cleanse(pdata, nSize); printf("RandAddSeed() %lu bytes\n", nSize); } #endif |