Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
e3d225f4
Commit
e3d225f4
authored
Jun 19, 2012
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disconnect on reception of an SSH_MSG_UNIMPLEMENTED message.
parent
eee7c208
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
ChangeLog
ChangeLog
+5
-0
src/transport.c
src/transport.c
+7
-1
No files found.
ChangeLog
View file @
e3d225f4
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>
* doc/index.html: Updated to xhtml, and added charset declaration.
...
...
src/transport.c
View file @
e3d225f4
...
...
@@ -292,6 +292,12 @@ transport_process_packet(struct transport_connection *connection,
{
/* 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
)
{
struct
simple_buffer
buffer
;
...
...
@@ -318,7 +324,7 @@ transport_process_packet(struct transport_connection *connection,
}
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? */
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment