Bugzilla – Attachment 2749 Details for
Bug 2494
kex_protocol_error should send SSH2_MSG_UNIMPLEMENTED
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
send SSH_MSG_UNIMPLEMENTED on kex protocol error
bz2494.diff (text/plain), 543 bytes, created by
Damien Miller
on 2015-11-13 13:15:02 AEDT
(
hide
)
Description:
send SSH_MSG_UNIMPLEMENTED on kex protocol error
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2015-11-13 13:15:02 AEDT
Size:
543 bytes
patch
obsolete
>diff --git a/kex.c b/kex.c >index 111a3e5..2dd8399 100644 >--- a/kex.c >+++ b/kex.c >@@ -296,7 +296,13 @@ kex_prop_free(char **proposal) > static int > kex_protocol_error(int type, u_int32_t seq, void *ctxt) > { >- error("Hm, kex protocol error: type %d seq %u", type, seq); >+ struct ssh *ssh = active_state; /* XXX */ >+ >+ error("kex protocol error: type %d seq %u", type, seq); >+ if ((r = sshpkt_start(ssh, SSH2_MSG_UNIMPLEMENTED)) != 0 || >+ (r = sshpkt_put_u32(ssh, seq)) != 0 || >+ (r = sshpkt_send(ssh)) != 0) >+ return r; > 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 2494
:
2749
|
2750