mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-01-03 08:12:05 +00:00
upstream commit
unconditionally zero init size of buffer; ok markus@ deraadt@ Upstream-ID: 218963e846d8f26763ba25afe79294547b99da29
This commit is contained in:
parent
65eb8fae0d
commit
cc812baf39
4
sshbuf.c
4
sshbuf.c
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: sshbuf.c,v 1.10 2017/05/31 09:15:42 deraadt Exp $ */
|
||||
/* $OpenBSD: sshbuf.c,v 1.11 2017/06/01 06:58:25 djm Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2011 Damien Miller
|
||||
*
|
||||
@ -201,7 +201,7 @@ sshbuf_reset(struct sshbuf *buf)
|
||||
buf->cd = buf->d = d;
|
||||
buf->alloc = SSHBUF_SIZE_INIT;
|
||||
}
|
||||
} else
|
||||
}
|
||||
explicit_bzero(buf->d, SSHBUF_SIZE_INIT);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user