diff common-session.c @ 775:2f1c199b6e4b

requirenext fixup for firstkexfollows
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Apr 2013 23:16:16 +0800
parents 685d05f1cc5c
children 7dcb46da72d9
line wrap: on
line diff
--- a/common-session.c	Sun Apr 14 23:08:57 2013 +0800
+++ b/common-session.c	Sun Apr 14 23:16:16 2013 +0800
@@ -82,7 +82,7 @@
 
 	initqueue(&ses.writequeue);
 
-	ses.requirenext = SSH_MSG_KEXINIT;
+	ses.requirenext[0] = SSH_MSG_KEXINIT;
 	ses.dataallowed = 1; /* we can send data until we actually 
 							send the SSH_MSG_KEXINIT */
 	ses.ignorenext = 0;