summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2004-05-09 01:26:49 +0000
committerDamien Miller <djm@cvs.openbsd.org>2004-05-09 01:26:49 +0000
commit9837355b421a639655d764b58b92f21d2ec37914 (patch)
tree8abb40f49062df415a87092adfa85b898c2707ff /usr.bin
parent96f6791ba7a9d59053a2502041be02e7d6752063 (diff)
don't overwrite what we are trying to compute
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/kex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/kex.c b/usr.bin/ssh/kex.c
index 30dd58a78e3..fa5de7ed8be 100644
--- a/usr.bin/ssh/kex.c
+++ b/usr.bin/ssh/kex.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: kex.c,v 1.57 2004/05/09 01:19:27 djm Exp $");
+RCSID("$OpenBSD: kex.c,v 1.58 2004/05/09 01:26:48 djm Exp $");
#include <openssl/crypto.h>
@@ -504,7 +504,7 @@ derive_ssh1_session_id(BIGNUM *host_modulus, BIGNUM *server_modulus,
EVP_DigestUpdate(&md, cookie, 8);
- EVP_DigestFinal(&md, id, NULL);
+ EVP_DigestFinal(&md, obuf, NULL);
memcpy(id, obuf, 16);
memset(nbuf, 0, sizeof(nbuf));