]> andersk Git - openssh.git/blobdiff - kex.c
- markus@cvs.openbsd.org 2002/01/11 13:39:36
[openssh.git] / kex.c
diff --git a/kex.c b/kex.c
index 255cc7431dae4bb042cbc605fdcdae922f880707..c74f1e4a2a3e5b6489769039dc382b805a3f527e 100644 (file)
--- a/kex.c
+++ b/kex.c
@@ -23,7 +23,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: kex.c,v 1.41 2001/12/28 15:06:00 markus Exp $");
+RCSID("$OpenBSD: kex.c,v 1.42 2002/01/11 13:39:36 markus Exp $");
 
 #include <openssl/crypto.h>
 
@@ -115,11 +115,8 @@ kex_protocol_error(int type, u_int32_t seq, void *ctxt)
 static void
 kex_clear_dispatch(void)
 {
-       int i;
-
-       /* Numbers 30-49 are used for kex packets */
-       for (i = 30; i <= 49; i++)
-               dispatch_set(i, &kex_protocol_error);
+       dispatch_range(SSH2_MSG_TRANSPORT_MIN,
+           SSH2_MSG_TRANSPORT_MAX, &kex_protocol_error);
 }
 
 void
This page took 0.208541 seconds and 4 git commands to generate.