Commit c1649ab0 authored by Nick Mathewson's avatar Nick Mathewson 👜
Browse files

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

parent fff1054d
......@@ -978,7 +978,7 @@ circuitmux_detach_circuit,(circuitmux_t *cmux, circuit_t *circ))
/* Wipe and free the hash entry */
// This isn't sensitive, but we want to be sure to know if we're accessing
// this accidentally.
memwipe(hashent, 0xef, sizeof(hashent));
memwipe(hashent, 0xef, sizeof(*hashent));
tor_free(hashent);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment