diff common-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 a389a2a7aa96
children f110d321fe7a
line wrap: on
line diff
--- a/common-kex.c	Sun Apr 14 23:08:57 2013 +0800
+++ b/common-kex.c	Sun Apr 14 23:16:16 2013 +0800
@@ -542,7 +542,7 @@
 	    buf_putstring(ses.kexhashbuf,
 			ses.transkexinit->data, ses.transkexinit->len);
 
-		ses.requirenext = SSH_MSG_KEXDH_INIT;
+		ses.requirenext[0] = SSH_MSG_KEXDH_INIT;
 	}
 
 	buf_free(ses.transkexinit);