summaryrefslogtreecommitdiff
path: root/usr.bin/openssl/dgst.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/openssl/dgst.c')
-rw-r--r--usr.bin/openssl/dgst.c7
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);