mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Wipe the entire hashent structure, not just the first sizeof(void*)
This commit is contained in:
parent
fff1054d17
commit
c1649ab015
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user