From: guenther@openbsd.org Date: Fri, 11 Sep 2015 08:50:04 +0000 (+0000) Subject: upstream commit X-Git-Tag: V_7_2_P1~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14692f7b8251cdda847e648a82735eef8a4d2a33;p=thirdparty%2Fopenssh-portable.git upstream commit Use explicit_bzero() when zeroing before free() from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu) ok millert@ djm@ Upstream-ID: 2e3337db046c3fe70c7369ee31515ac73ec00f50 --- diff --git a/bitmap.c b/bitmap.c index 19cd2e8e3..f95032250 100644 --- a/bitmap.c +++ b/bitmap.c @@ -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);