aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitmux.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-02-14 08:15:37 -0500
committerNick Mathewson <nickm@torproject.org>2020-02-14 08:15:37 -0500
commitc1649ab01522f6258fc2555869cbf3abb7535515 (patch)
tree9574089dc504e4786415ae3dd24636b5ca072cc1 /src/core/or/circuitmux.c
parentfff1054d17c8e869c38d4ca1c68ed74a7e82e393 (diff)
downloadtor-c1649ab01522f6258fc2555869cbf3abb7535515.tar.gz
tor-c1649ab01522f6258fc2555869cbf3abb7535515.zip
Wipe the entire hashent structure, not just the first sizeof(void*)
Diffstat (limited to 'src/core/or/circuitmux.c')
-rw-r--r--src/core/or/circuitmux.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}