From e567b4482a1473f586a8549d9311d989c2335172 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 8 Nov 2012 19:59:54 -0500 Subject: 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. --- src/common/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/util.c b/src/common/util.c index 005c2b52c..6fb597a3a 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); } -- cgit v1.2.3