summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-11-08 19:59:54 -0500
committerNick Mathewson <nickm@torproject.org>2012-11-08 19:59:54 -0500
commite567b4482a1473f586a8549d9311d989c2335172 (patch)
treeec8f4250a5719243830d0b383ad9994ac1dbd37f
parent9ad4776e6150a29fdfff607721599eb04c6e76d7 (diff)
downloadtor-e567b4482a1473f586a8549d9311d989c2335172.tar.gz
tor-e567b4482a1473f586a8549d9311d989c2335172.zip
Turn a memwipe in tor_process_handle_destroy() back to memset
It broke linking on tor-resolve.c, and it's not actually sanitizing anything sensitive. Fix for bug 7420; bug not on ony released Tor.
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 005c2b52c3..6fb597a3a5 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -3808,7 +3808,7 @@ tor_process_handle_destroy(process_handle_t *process_handle,
fclose(process_handle->stderr_handle);
#endif
- memwipe(process_handle, 0x0f, sizeof(process_handle_t));
+ memset(process_handle, 0x0f, sizeof(process_handle_t));
tor_free(process_handle);
}