summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/kexc25519.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/kexc25519.c')
-rw-r--r--crypto/openssh/kexc25519.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/openssh/kexc25519.c b/crypto/openssh/kexc25519.c
index 48ca4aa..ee79b43 100644
--- a/crypto/openssh/kexc25519.c
+++ b/crypto/openssh/kexc25519.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kexc25519.c,v 1.4 2014/01/12 08:13:13 djm Exp $ */
+/* $OpenBSD: kexc25519.c,v 1.5 2014/01/31 16:39:19 tedu Exp $ */
/*
* Copyright (c) 2001, 2013 Markus Friedl. All rights reserved.
* Copyright (c) 2010 Damien Miller. All rights reserved.
@@ -70,7 +70,7 @@ kexc25519_shared_key(const u_char key[CURVE25519_SIZE],
#endif
buffer_clear(out);
buffer_put_bignum2_from_string(out, shared_key, CURVE25519_SIZE);
- memset(shared_key, 0, CURVE25519_SIZE); /* XXX explicit_bzero() */
+ explicit_bzero(shared_key, CURVE25519_SIZE);
}
void
OpenPOWER on IntegriCloud