diff options
author | Colin Watson <cjwatson@debian.org> | 2016-10-24 11:13:30 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-10-24 11:14:03 +0100 |
commit | 5dfa38163e4a5f0ae204fb61e520ce8bedbe629f (patch) | |
tree | 399ea6ce43d72a44d76d668e4302da93ccb0e4a1 /kex.c | |
parent | 87ffbd30492802e44259cdfc0d8187393cc63917 (diff) | |
parent | b139635512b1af75e82252c0c71ac66e08b78774 (diff) |
CVE-2016-8858: Unregister the KEXINIT handler after message has been received (closes: #841884).
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -488,6 +488,7 @@ kex_input_kexinit(int type, u_int32_t seq, void *ctxt) | |||
488 | if (kex == NULL) | 488 | if (kex == NULL) |
489 | return SSH_ERR_INVALID_ARGUMENT; | 489 | return SSH_ERR_INVALID_ARGUMENT; |
490 | 490 | ||
491 | ssh_dispatch_set(ssh, SSH2_MSG_KEXINIT, NULL); | ||
491 | ptr = sshpkt_ptr(ssh, &dlen); | 492 | ptr = sshpkt_ptr(ssh, &dlen); |
492 | if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0) | 493 | if ((r = sshbuf_put(kex->peer, ptr, dlen)) != 0) |
493 | return r; | 494 | return r; |