summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/bitmap.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-11 08:50:04 +0000
committerguenther <guenther@openbsd.org>2015-09-11 08:50:04 +0000
commitca1a83612f04304fa3e7a994c26dab49b2bfa8eb (patch)
tree6e0f70ca07932bfc9283afce1d195d424b3273b5 /usr.bin/ssh/bitmap.c
parenthide three netdb related variables; ok guenther (diff)
downloadwireguard-openbsd-ca1a83612f04304fa3e7a994c26dab49b2bfa8eb.tar.xz
wireguard-openbsd-ca1a83612f04304fa3e7a994c26dab49b2bfa8eb.zip
Use explicit_bzero() when zeroing before free()
from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu) ok millert@ djm@
Diffstat (limited to 'usr.bin/ssh/bitmap.c')
-rw-r--r--usr.bin/ssh/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ssh/bitmap.c b/usr.bin/ssh/bitmap.c
index ccb597c140d..b9df2c9f303 100644
--- a/usr.bin/ssh/bitmap.c
+++ b/usr.bin/ssh/bitmap.c
@@ -51,7 +51,7 @@ void
bitmap_free(struct bitmap *b)
{
if (b != NULL && b->d != NULL) {
- memset(b->d, 0, b->len);
+ explicit_bzero(b->d, b->len);
free(b->d);
}
free(b);