diff options
author | 2015-10-05 17:11:21 +0000 | |
---|---|---|
committer | 2015-10-05 17:11:21 +0000 | |
commit | 10ed543622a3816c0f525423cd97306870cf6be5 (patch) | |
tree | 2742a02e55652e9efe02d2dec906a73c1f651465 /usr.bin/ssh/sshbuf.c | |
parent | correct picasso's birth date; (diff) | |
download | wireguard-openbsd-10ed543622a3816c0f525423cd97306870cf6be5.tar.xz wireguard-openbsd-10ed543622a3816c0f525423cd97306870cf6be5.zip |
some more bzero->explicit_bzero, from Michael McConville
Diffstat (limited to 'usr.bin/ssh/sshbuf.c')
-rw-r--r-- | usr.bin/ssh/sshbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshbuf.c b/usr.bin/ssh/sshbuf.c index 5bc729afa1d..e3f42d28908 100644 --- a/usr.bin/ssh/sshbuf.c +++ b/usr.bin/ssh/sshbuf.c @@ -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 * @@ -175,7 +175,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)); |