diff options
author | Damien Miller <djm@mindrot.org> | 2014-02-04 01:25:45 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-02-04 01:25:45 +0100 |
commit | db3c595ea74ea9ccd5aa644d7e1f8dc675710731 (patch) | |
tree | dd9d8db7429fc311131c4dd965296dc672bef269 /digest-openssl.c | |
parent | - djm@cvs.openbsd.org 2014/02/03 23:28:00 (diff) | |
download | openssh-db3c595ea74ea9ccd5aa644d7e1f8dc675710731.tar.xz openssh-db3c595ea74ea9ccd5aa644d7e1f8dc675710731.zip |
- djm@cvs.openbsd.org 2014/02/02 03:44:31
[digest-libc.c digest-openssl.c]
convert memset of potentially-private data to explicit_bzero()
Diffstat (limited to 'digest-openssl.c')
-rw-r--r-- | digest-openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/digest-openssl.c b/digest-openssl.c index 8d7a58f34..863d37d03 100644 --- a/digest-openssl.c +++ b/digest-openssl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: digest-openssl.c,v 1.1 2014/01/28 20:13:46 markus Exp $ */ +/* $OpenBSD: digest-openssl.c,v 1.2 2014/02/02 03:44:31 djm Exp $ */ /* * Copyright (c) 2013 Damien Miller <djm@mindrot.org> * @@ -140,7 +140,7 @@ ssh_digest_free(struct ssh_digest_ctx *ctx) { if (ctx != NULL) { EVP_MD_CTX_cleanup(&ctx->mdctx); - memset(ctx, 0, sizeof(*ctx)); + explicit_bzero(ctx, sizeof(*ctx)); free(ctx); } } |