diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-10-20 11:12:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-10-20 11:12:51 -0400 |
commit | e3d166b7a63b4f0c248e20b759dba2ccb8d30092 (patch) | |
tree | 6cd71bd4e7fc60e9573106c71ebfbc3cff030b9d /src/common | |
parent | d6fab2afd7f37a3a31063654a8f5451d5d290bcf (diff) | |
parent | 2e1f5c1fc0f6239a8bb9f409f1f170fb21ce1a37 (diff) | |
download | tor-e3d166b7a63b4f0c248e20b759dba2ccb8d30092.tar.gz tor-e3d166b7a63b4f0c248e20b759dba2ccb8d30092.zip |
Merge remote-tracking branch 'teor/memwipe-more-keys'
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index f128336e50..58f20aeb85 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -1684,7 +1684,7 @@ crypto_digest_get_digest(crypto_digest_t *digest, log_warn(LD_BUG, "Called with unknown algorithm %d", digest->algorithm); /* If fragile_assert is not enabled, then we should at least not * leak anything. */ - memset(r, 0xff, sizeof(r)); + memwipe(r, 0xff, sizeof(r)); tor_fragile_assert(); break; } |