From: djm Date: Mon, 1 May 2017 22:09:48 +0000 (+0000) Subject: when freeing a bitmap, zero all it bytes; spotted by Ilya Kaliman X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=57dd3233e47369aa32288eeb4d408c2169e82eb0;p=openbsd when freeing a bitmap, zero all it bytes; spotted by Ilya Kaliman --- diff --git a/usr.bin/ssh/bitmap.c b/usr.bin/ssh/bitmap.c index b9df2c9f303..776a01e5917 100644 --- a/usr.bin/ssh/bitmap.c +++ b/usr.bin/ssh/bitmap.c @@ -51,8 +51,9 @@ void bitmap_free(struct bitmap *b) { if (b != NULL && b->d != NULL) { - explicit_bzero(b->d, b->len); + bitmap_zero(b); free(b->d); + b->d = NULL; } free(b); }