summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kex.c b/kex.c
index 30dd58a78..fa5de7ed8 100644
--- a/kex.c
+++ b/kex.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: kex.c,v 1.57 2004/05/09 01:19:27 djm Exp $"); 26RCSID("$OpenBSD: kex.c,v 1.58 2004/05/09 01:26:48 djm Exp $");
27 27
28#include <openssl/crypto.h> 28#include <openssl/crypto.h>
29 29
@@ -504,7 +504,7 @@ derive_ssh1_session_id(BIGNUM *host_modulus, BIGNUM *server_modulus,
504 504
505 EVP_DigestUpdate(&md, cookie, 8); 505 EVP_DigestUpdate(&md, cookie, 8);
506 506
507 EVP_DigestFinal(&md, id, NULL); 507 EVP_DigestFinal(&md, obuf, NULL);
508 memcpy(id, obuf, 16); 508 memcpy(id, obuf, 16);
509 509
510 memset(nbuf, 0, sizeof(nbuf)); 510 memset(nbuf, 0, sizeof(nbuf));