Wipe the entire hashent structure, not just the first sizeof(void*)

This commit is contained in:
Nick Mathewson 2020-02-14 08:15:37 -05:00
parent fff1054d17
commit c1649ab015

View File

@ -978,7 +978,7 @@ circuitmux_detach_circuit,(circuitmux_t *cmux, circuit_t *circ))
/* Wipe and free the hash entry */ /* Wipe and free the hash entry */
// This isn't sensitive, but we want to be sure to know if we're accessing // This isn't sensitive, but we want to be sure to know if we're accessing
// this accidentally. // this accidentally.
memwipe(hashent, 0xef, sizeof(hashent)); memwipe(hashent, 0xef, sizeof(*hashent));
tor_free(hashent); tor_free(hashent);
} }
} }