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,
{
if (service
&& SERVICE_INIT(service, connection))
/* Access granted */
{ /* Access granted */
/* Ignore any further userauth messages. */
connection->dispatch[SSH_MSG_USERAUTH_REQUEST]
= connection->ignore;
return A_WRITE(connection->write, format_userauth_success());
}
else
return attempts
? 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