summaryrefslogtreecommitdiff
path: root/sshbuf.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-10-05 17:11:21 +0000
committerDamien Miller <djm@mindrot.org>2016-01-14 12:10:42 +1100
commit34d364f0d2e1e30a444009f0e04299bb7c94ba13 (patch)
treeaaaf13a9cb1a30da6e4ac21d507da6304f17a5ed /sshbuf.c
parent8f5b93026797b9f7fba90d0c717570421ccebbd3 (diff)
upstream commit
some more bzero->explicit_bzero, from Michael McConville Upstream-ID: 17f19545685c33327db2efdc357c1c9225ff00d0
Diffstat (limited to 'sshbuf.c')
-rw-r--r--sshbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshbuf.c b/sshbuf.c
index 9915e9af4..19e162c07 100644
--- a/sshbuf.c
+++ b/sshbuf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshbuf.c,v 1.3 2015/01/20 23:14:00 deraadt Exp $ */ 1/* $OpenBSD: sshbuf.c,v 1.4 2015/10/05 17:11:21 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2011 Damien Miller 3 * Copyright (c) 2011 Damien Miller
4 * 4 *
@@ -177,7 +177,7 @@ sshbuf_free(struct sshbuf *buf)
177 return; 177 return;
178 dont_free = buf->dont_free; 178 dont_free = buf->dont_free;
179 if (!buf->readonly) { 179 if (!buf->readonly) {
180 bzero(buf->d, buf->alloc); 180 explicit_bzero(buf->d, buf->alloc);
181 free(buf->d); 181 free(buf->d);
182 } 182 }
183 explicit_bzero(buf, sizeof(*buf)); 183 explicit_bzero(buf, sizeof(*buf));