diff options
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: kex.c,v 1.41 2001/12/28 15:06:00 markus Exp $"); | 26 | RCSID("$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) | |||
115 | static void | 115 | static void |
116 | kex_clear_dispatch(void) | 116 | kex_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 | ||
125 | void | 122 | void |