diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-11 08:50:05 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-09-11 08:50:05 +0000 |
commit | efdb77a4816910797e7924515a219316f7a74f7b (patch) | |
tree | 0d91c83d35e06b375c98e30a366b18ccebdc0e8e /usr.bin | |
parent | 59829d3eb07ee463841096ad34df31309e0bd206 (diff) |
Use explicit_bzero() when zeroing before free()
from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu)
ok millert@ djm@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/bitmap.c | 2 |
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); |