diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2014-02-02 03:44:33 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2014-02-02 03:44:33 +0000 |
commit | b5d9a0e1ebbdac0edd5313d53fda2a2bbb2f318f (patch) | |
tree | 0d1ea03044676ba7c2b6aa024d64a6c160161f7a /usr.bin/ssh/kexecdhc.c | |
parent | fe55dfde82d2faf80a3ca92ba365c26ec5e2ad02 (diff) |
convert memset of potentially-private data to explicit_bzero()
Diffstat (limited to 'usr.bin/ssh/kexecdhc.c')
-rw-r--r-- | usr.bin/ssh/kexecdhc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/kexecdhc.c b/usr.bin/ssh/kexecdhc.c index 20a373c028e..4dd8af4df66 100644 --- a/usr.bin/ssh/kexecdhc.c +++ b/usr.bin/ssh/kexecdhc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kexecdhc.c,v 1.6 2014/01/12 08:13:13 djm Exp $ */ +/* $OpenBSD: kexecdhc.c,v 1.7 2014/02/02 03:44:31 djm Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * Copyright (c) 2010 Damien Miller. All rights reserved. @@ -115,7 +115,7 @@ kexecdh_client(Kex *kex) fatal("%s: BN_new failed", __func__); if (BN_bin2bn(kbuf, klen, shared_secret) == NULL) fatal("%s: BN_bin2bn failed", __func__); - memset(kbuf, 0, klen); + explicit_bzero(kbuf, klen); free(kbuf); /* calc and verify H */ |