Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
774:e8b2ca448928 | 775:2f1c199b6e4b |
---|---|
540 | 540 |
541 /* I_S, the payload of the server's SSH_MSG_KEXINIT */ | 541 /* I_S, the payload of the server's SSH_MSG_KEXINIT */ |
542 buf_putstring(ses.kexhashbuf, | 542 buf_putstring(ses.kexhashbuf, |
543 ses.transkexinit->data, ses.transkexinit->len); | 543 ses.transkexinit->data, ses.transkexinit->len); |
544 | 544 |
545 ses.requirenext = SSH_MSG_KEXDH_INIT; | 545 ses.requirenext[0] = SSH_MSG_KEXDH_INIT; |
546 } | 546 } |
547 | 547 |
548 buf_free(ses.transkexinit); | 548 buf_free(ses.transkexinit); |
549 ses.transkexinit = NULL; | 549 ses.transkexinit = NULL; |
550 /* the rest of ses.kexhashbuf will be done after DH exchange */ | 550 /* the rest of ses.kexhashbuf will be done after DH exchange */ |