summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/kexgexc.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/kexgexc.c
parentfe55dfde82d2faf80a3ca92ba365c26ec5e2ad02 (diff)
convert memset of potentially-private data to explicit_bzero()
Diffstat (limited to 'usr.bin/ssh/kexgexc.c')
-rw-r--r--usr.bin/ssh/kexgexc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/kexgexc.c b/usr.bin/ssh/kexgexc.c
index 7d1a755a1b3..0bca8204e58 100644
--- a/usr.bin/ssh/kexgexc.c
+++ b/usr.bin/ssh/kexgexc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexgexc.c,v 1.16 2014/01/25 10:12:50 dtucker Exp $ */
+/* $OpenBSD: kexgexc.c,v 1.17 2014/02/02 03:44:31 djm Exp $ */
/*
* Copyright (c) 2000 Niels Provos. All rights reserved.
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -159,7 +159,7 @@ kexgex_client(Kex *kex)
fatal("kexgex_client: BN_new failed");
if (BN_bin2bn(kbuf, kout, shared_secret) == NULL)
fatal("kexgex_client: BN_bin2bn failed");
- memset(kbuf, 0, klen);
+ explicit_bzero(kbuf, klen);
free(kbuf);
if (datafellows & SSH_OLD_DHGEX)