summaryrefslogtreecommitdiffhomepage
path: root/common-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2005-03-13 13:58:14 +0000
committerMatt Johnston <matt@ucc.asn.au>2005-03-13 13:58:14 +0000
commitf45eafe342aa07dfdc7a83e865b642f9b8ef2fa0 (patch)
tree420b80af3728353ee1a4151ecd32d627a48c1fdf /common-kex.c
parenta68755af2bbc2e34ad23a74fc4d9d5c58502aa14 (diff)
* fix longstanding bug with connections being closed on failure to
connect to auth socket (server) * differentiate between get_byte and get_bool * get rid of some // comments * general tidying --HG-- extra : convert_revision : fb8d188ce33b6b45804a5ce51b9f601f83bdf3d7
Diffstat (limited to 'common-kex.c')
-rw-r--r--common-kex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common-kex.c b/common-kex.c
index 97e341d..a2336c5 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -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) {