summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/kexdhc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2014-02-02 03:44:33 +0000
committerDamien Miller <djm@cvs.openbsd.org>2014-02-02 03:44:33 +0000
commitb5d9a0e1ebbdac0edd5313d53fda2a2bbb2f318f (patch)
tree0d1ea03044676ba7c2b6aa024d64a6c160161f7a /usr.bin/ssh/kexdhc.c
parentfe55dfde82d2faf80a3ca92ba365c26ec5e2ad02 (diff)
convert memset of potentially-private data to explicit_bzero()
Diffstat (limited to 'usr.bin/ssh/kexdhc.c')
-rw-r--r--usr.bin/ssh/kexdhc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/kexdhc.c b/usr.bin/ssh/kexdhc.c
index 308c0bc2eeb..129155c47d0 100644
--- a/usr.bin/ssh/kexdhc.c
+++ b/usr.bin/ssh/kexdhc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexdhc.c,v 1.14 2014/01/12 08:13:13 djm Exp $ */
+/* $OpenBSD: kexdhc.c,v 1.15 2014/02/02 03:44:31 djm Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
*
@@ -121,7 +121,7 @@ kexdh_client(Kex *kex)
fatal("kexdh_client: BN_new failed");
if (BN_bin2bn(kbuf, kout, shared_secret) == NULL)
fatal("kexdh_client: BN_bin2bn failed");
- memset(kbuf, 0, klen);
+ explicit_bzero(kbuf, klen);
free(kbuf);
/* calc and verify H */