From: Nick Mathewson Date: Fri, 14 Feb 2020 13:15:37 +0000 (-0500) Subject: Wipe the entire hashent structure, not just the first sizeof(void*) X-Git-Tag: tor-0.4.3.3-alpha~32^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1649ab01522f6258fc2555869cbf3abb7535515;p=thirdparty%2Ftor.git Wipe the entire hashent structure, not just the first sizeof(void*) --- diff --git a/src/core/or/circuitmux.c b/src/core/or/circuitmux.c index 72f6ba662b..4b19a12e3c 100644 --- a/src/core/or/circuitmux.c +++ b/src/core/or/circuitmux.c @@ -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); } }