]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Wipe the entire hashent structure, not just the first sizeof(void*)
authorNick Mathewson <nickm@torproject.org>
Fri, 14 Feb 2020 13:15:37 +0000 (08:15 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 14 Feb 2020 13:15:37 +0000 (08:15 -0500)
src/core/or/circuitmux.c

index 72f6ba662bc7b87093ad6a349d9e14e4b2d349f9..4b19a12e3c6de0effb57181ff5e566173498f76c 100644 (file)
@@ -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);
   }
 }