summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/kex.c b/kex.c
index 255cc7431..c74f1e4a2 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.41 2001/12/28 15:06:00 markus Exp $"); 26RCSID("$OpenBSD: kex.c,v 1.42 2002/01/11 13:39:36 markus Exp $");
27 27
28#include <openssl/crypto.h> 28#include <openssl/crypto.h>
29 29
@@ -115,11 +115,8 @@ kex_protocol_error(int type, u_int32_t seq, void *ctxt)
115static void 115static void
116kex_clear_dispatch(void) 116kex_clear_dispatch(void)
117{ 117{
118 int i; 118 dispatch_range(SSH2_MSG_TRANSPORT_MIN,
119 119 SSH2_MSG_TRANSPORT_MAX, &kex_protocol_error);
120 /* Numbers 30-49 are used for kex packets */
121 for (i = 30; i <= 49; i++)
122 dispatch_set(i, &kex_protocol_error);
123} 120}
124 121
125void 122void