Commit e3d225f4 authored by Niels Möller's avatar Niels Möller

Disconnect on reception of an SSH_MSG_UNIMPLEMENTED message.

parent eee7c208
2012-06-19 Niels Möller <nisse@lysator.liu.se>
* src/transport.c (transport_process_packet): Disconnect on
reception of an SSH_MSG_UNIMPLEMENTED message.
2012-02-03 Niels Möller <nisse@lysator.liu.se> 2012-02-03 Niels Möller <nisse@lysator.liu.se>
* doc/index.html: Updated to xhtml, and added charset declaration. * doc/index.html: Updated to xhtml, and added charset declaration.
......
...@@ -292,6 +292,12 @@ transport_process_packet(struct transport_connection *connection, ...@@ -292,6 +292,12 @@ transport_process_packet(struct transport_connection *connection,
{ {
/* Do nothing */ /* Do nothing */
} }
else if (msg == SSH_MSG_UNIMPLEMENTED)
{
werror("Received an \"unimplemented\" reply. Disconnecting.\n");
transport_close(connection, 0);
}
else if (msg == SSH_MSG_DISCONNECT) else if (msg == SSH_MSG_DISCONNECT)
{ {
struct simple_buffer buffer; struct simple_buffer buffer;
...@@ -318,7 +324,7 @@ transport_process_packet(struct transport_connection *connection, ...@@ -318,7 +324,7 @@ transport_process_packet(struct transport_connection *connection,
} }
else if (msg == SSH_MSG_DEBUG) else if (msg == SSH_MSG_DEBUG)
{ {
/* Ignore it. Perhaps it's best to pass it on to the /* Ignore it. FIXME: Perhaps it's best to pass it on to the
application? */ application? */
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment