diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-04-18 02:15:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2017-04-18 02:15:51 +0000 |
commit | d01d267d9c9cf65ea2671d7ffd1139d7dd69c221 (patch) | |
tree | 4ae2c38c7d03e7fafc7bfa7bd9dbf1ad08f9cf85 /usr.bin/openssl/dgst.c | |
parent | 3f3eb54b6f782d4e6183148932f260c01cd66ca5 (diff) |
use freezero() instead of 4-line conditional explicit_bzero + free
Diffstat (limited to 'usr.bin/openssl/dgst.c')
-rw-r--r-- | usr.bin/openssl/dgst.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/openssl/dgst.c b/usr.bin/openssl/dgst.c index ce50e08b53a..bcc9f1c7610 100644 --- a/usr.bin/openssl/dgst.c +++ b/usr.bin/openssl/dgst.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dgst.c,v 1.10 2017/01/20 08:57:11 deraadt Exp $ */ +/* $OpenBSD: dgst.c,v 1.11 2017/04/18 02:15:50 deraadt Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -448,10 +448,7 @@ mac_end: } end: - if (buf != NULL) { - explicit_bzero(buf, BUFSIZE); - free(buf); - } + freezero(buf, BUFSIZE); if (in != NULL) BIO_free(in); free(passin); |