diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-05-13 08:31:48 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-05-13 08:31:48 +0200 |
commit | b42714e28bcb22c5b52b0266813165cf5e7e9ccb (patch) | |
tree | 17f132e9032bf9ab7851877bcd83d92a24d2d133 /kex.c | |
parent | - djm@cvs.openbsd.org 2004/05/09 01:19:28 (diff) | |
download | openssh-b42714e28bcb22c5b52b0266813165cf5e7e9ccb.tar.xz openssh-b42714e28bcb22c5b52b0266813165cf5e7e9ccb.zip |
- djm@cvs.openbsd.org 2004/05/09 01:26:48
[kex.c]
don't overwrite what we are trying to compute
Diffstat (limited to '')
-rw-r--r-- | kex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |