diff svr-kex.c @ 775:2f1c199b6e4b

requirenext fixup for firstkexfollows
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Apr 2013 23:16:16 +0800
parents 3aa74a4d83ae
children 7dcb46da72d9
line wrap: on
line diff
--- a/svr-kex.c	Sun Apr 14 23:08:57 2013 +0800
+++ b/svr-kex.c	Sun Apr 14 23:16:16 2013 +0800
@@ -61,7 +61,8 @@
 	mp_clear(&dh_e);
 
 	send_msg_newkeys();
-	ses.requirenext = SSH_MSG_NEWKEYS;
+	ses.requirenext[0] = SSH_MSG_NEWKEYS;
+	ses.requirenext[1] = 0;
 	TRACE(("leave recv_msg_kexdh_init"))
 }