Bugzilla – Attachment 3316 Details for
Bug 2929
OpenSSH server should not send the SSH_MSG_EXT_INFO message after rekeying
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
check KEX_INITIAL before sending ext-info
bz2929.diff (text/plain), 794 bytes, created by
Damien Miller
on 2019-09-04 09:27:42 AEST
(
hide
)
Description:
check KEX_INITIAL before sending ext-info
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2019-09-04 09:27:42 AEST
Size:
794 bytes
patch
obsolete
>diff --git a/kex.c b/kex.c >index 374b827..60e9b5d 100644 >--- a/kex.c >+++ b/kex.c >@@ -398,6 +398,7 @@ kex_send_ext_info(struct ssh *ssh) > int r; > char *algs; > >+ debug("Sending SSH2_MSG_EXT_INFO"); > if ((algs = sshkey_alg_list(0, 1, 1, ',')) == NULL) > return SSH_ERR_ALLOC_FAIL; > /* XXX filter algs list by allowed pubkey/hostbased types */ >@@ -424,11 +425,11 @@ kex_send_newkeys(struct ssh *ssh) > (r = sshpkt_send(ssh)) != 0) > return r; > debug("SSH2_MSG_NEWKEYS sent"); >- debug("expecting SSH2_MSG_NEWKEYS"); > ssh_dispatch_set(ssh, SSH2_MSG_NEWKEYS, &kex_input_newkeys); >- if (ssh->kex->ext_info_c) >+ if (ssh->kex->ext_info_c && (ssh->kex->flags & KEX_INITIAL) != 0) > if ((r = kex_send_ext_info(ssh)) != 0) > return r; >+ debug("expecting SSH2_MSG_NEWKEYS"); > return 0; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2929
:
3205
| 3316