The unified diff between revisions [c172bcef..] and [fb8d188c..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'common-kex.c'

#
#
# patch "common-kex.c"
#  from [cd4c38b3cda9c8a7d9ac70a585baa1ad2e078c54]
#    to [9788bd7db05be84eb9abdaa8f0f72c95e10a0d8d]
#
============================================================
--- common-kex.c	cd4c38b3cda9c8a7d9ac70a585baa1ad2e078c54
+++ common-kex.c	9788bd7db05be84eb9abdaa8f0f72c95e10a0d8d
@@ -457,7 +457,6 @@ void recv_msg_kexinit() {
 	/* the rest of ses.kexhashbuf will be done after DH exchange */

 	ses.kexstate.recvkexinit = 1;
-//	ses.expecting = 0; // client matt

 	TRACE(("leave recv_msg_kexinit"))
 }
@@ -683,7 +682,7 @@ static void read_kex_algos() {
 	buf_eatstring(ses.payload);

 	/* first_kex_packet_follows */
-	if (buf_getbyte(ses.payload)) {
+	if (buf_getbool(ses.payload)) {
 		ses.kexstate.firstfollows = 1;
 		/* if the guess wasn't good, we ignore the packet sent */
 		if (!allgood) {