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.
This commit is contained in:
Nick Mathewson 2012-11-08 19:59:54 -05:00
parent 9ad4776e61
commit e567b4482a

View 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);
}