diff options
author | guenther@openbsd.org <guenther@openbsd.org> | 2015-09-11 10:50:04 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-09-16 09:52:07 +0200 |
commit | 14692f7b8251cdda847e648a82735eef8a4d2a33 (patch) | |
tree | c1768b62df1e88a72f98c35ea271943ababa1508 /bitmap.c | |
parent | upstream commit (diff) | |
download | openssh-14692f7b8251cdda847e648a82735eef8a4d2a33.tar.xz openssh-14692f7b8251cdda847e648a82735eef8a4d2a33.zip |
upstream commit
Use explicit_bzero() when zeroing before free()
from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu)
ok millert@ djm@
Upstream-ID: 2e3337db046c3fe70c7369ee31515ac73ec00f50
Diffstat (limited to 'bitmap.c')
-rw-r--r-- | bitmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,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); |