]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream commit
authorguenther@openbsd.org <guenther@openbsd.org>
Fri, 11 Sep 2015 08:50:04 +0000 (08:50 +0000)
committerDamien Miller <djm@mindrot.org>
Wed, 16 Sep 2015 07:52:07 +0000 (17:52 +1000)
Use explicit_bzero() when zeroing before free()

from Michael McConville (mmcconv1 (at) sccs.swarthmore.edu)
ok millert@ djm@

Upstream-ID: 2e3337db046c3fe70c7369ee31515ac73ec00f50

bitmap.c

index 19cd2e8e37934a4e74f4761a97063866db66590e..f95032250e7c7fbf91bb4f494f493eb014f3eb5e 100644 (file)
--- 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);