summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kex.c b/kex.c
index e4163214d..139a509c2 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.39 2001/12/28 12:14:27 markus Exp $"); 26RCSID("$OpenBSD: kex.c,v 1.40 2001/12/28 14:50:54 markus Exp $");
27 27
28#include <openssl/crypto.h> 28#include <openssl/crypto.h>
29 29
@@ -125,8 +125,6 @@ kex_clear_dispatch(void)
125void 125void
126kex_finish(Kex *kex) 126kex_finish(Kex *kex)
127{ 127{
128 int plen;
129
130 kex_clear_dispatch(); 128 kex_clear_dispatch();
131 129
132 packet_start(SSH2_MSG_NEWKEYS); 130 packet_start(SSH2_MSG_NEWKEYS);
@@ -135,7 +133,7 @@ kex_finish(Kex *kex)
135 debug("SSH2_MSG_NEWKEYS sent"); 133 debug("SSH2_MSG_NEWKEYS sent");
136 134
137 debug("waiting for SSH2_MSG_NEWKEYS"); 135 debug("waiting for SSH2_MSG_NEWKEYS");
138 packet_read_expect(&plen, SSH2_MSG_NEWKEYS); 136 packet_read_expect(SSH2_MSG_NEWKEYS);
139 debug("SSH2_MSG_NEWKEYS received"); 137 debug("SSH2_MSG_NEWKEYS received");
140 138
141 kex->done = 1; 139 kex->done = 1;