diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-10-05 19:11:21 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-10-06 03:26:41 +0200 |
commit | 905b054ed24e0d5b4ef226ebf2c8bfc02ae6d4ad (patch) | |
tree | 44f664443952cd5aec21f8cf139d54ae318a52b3 /sshbuf.c | |
parent | upstream commit (diff) | |
download | openssh-905b054ed24e0d5b4ef226ebf2c8bfc02ae6d4ad.tar.xz openssh-905b054ed24e0d5b4ef226ebf2c8bfc02ae6d4ad.zip |
upstream commit
some more bzero->explicit_bzero, from Michael McConville
Upstream-ID: 17f19545685c33327db2efdc357c1c9225ff00d0
Diffstat (limited to '')
-rw-r--r-- | sshbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: sshbuf.c,v 1.3 2015/01/20 23:14:00 deraadt Exp $ */ +/* $OpenBSD: sshbuf.c,v 1.4 2015/10/05 17:11:21 djm Exp $ */ /* * Copyright (c) 2011 Damien Miller * @@ -177,7 +177,7 @@ sshbuf_free(struct sshbuf *buf) return; dont_free = buf->dont_free; if (!buf->readonly) { - bzero(buf->d, buf->alloc); + explicit_bzero(buf->d, buf->alloc); free(buf->d); } bzero(buf, sizeof(*buf)); |