Commit 0c80cf24 authored by Niels Möller's avatar Niels Möller
Browse files

Ignore userauth messages that arrives after that user authentication

is complete.

Rev: src/server_userauth.c:1.3
parent e141093c
...@@ -86,8 +86,12 @@ static int do_handle_user_auth(struct packet_handler *c, ...@@ -86,8 +86,12 @@ static int do_handle_user_auth(struct packet_handler *c,
{ {
if (service if (service
&& SERVICE_INIT(service, connection)) && SERVICE_INIT(service, connection))
/* Access granted */ { /* Access granted */
return A_WRITE(connection->write, format_userauth_success()); /* Ignore any further userauth messages. */
connection->dispatch[SSH_MSG_USERAUTH_REQUEST]
= connection->ignore;
return A_WRITE(connection->write, format_userauth_success());
}
else else
return attempts return attempts
? A_WRITE(connection->write, ? A_WRITE(connection->write,
......
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