summaryrefslogtreecommitdiffhomepage
path: root/common-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2014-01-23 22:25:52 +0800
committerMatt Johnston <matt@ucc.asn.au>2014-01-23 22:25:52 +0800
commit55a0c5068ff7cccf4938f354c6acf97dcfd7d3f3 (patch)
tree684437415ca2d198c2ce959978bd9c5fe3b4cc5a /common-kex.c
parent8128b15e4157abc382f360eaf95c0fabefe5bc61 (diff)
requirenext doesn't need two values
Diffstat (limited to 'common-kex.c')
-rw-r--r--common-kex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common-kex.c b/common-kex.c
index 3c1e604..9373aa2 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -525,7 +525,7 @@ void recv_msg_kexinit() {
/* I_S, the payload of the server's SSH_MSG_KEXINIT */
buf_setpos(ses.payload, 0);
buf_putstring(ses.kexhashbuf, ses.payload->data, ses.payload->len);
- ses.requirenext[0] = SSH_MSG_KEXDH_REPLY;
+ ses.requirenext = SSH_MSG_KEXDH_REPLY;
} else {
/* SERVER */
@@ -545,7 +545,7 @@ void recv_msg_kexinit() {
buf_putstring(ses.kexhashbuf,
ses.transkexinit->data, ses.transkexinit->len);
- ses.requirenext[0] = SSH_MSG_KEXDH_INIT;
+ ses.requirenext = SSH_MSG_KEXDH_INIT;
}
buf_free(ses.transkexinit);