]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Turn a memwipe in tor_process_handle_destroy() back to memset
authorNick Mathewson <nickm@torproject.org>
Fri, 9 Nov 2012 00:59:54 +0000 (19:59 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 9 Nov 2012 00:59:54 +0000 (19:59 -0500)
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

index 005c2b52c3a642babe661a83a0f2b6f989469050..6fb597a3a522494c2d7c21f903047101179ef977 100644 (file)
@@ -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);
 }