Skip to content
Snippets Groups Projects
Commit 00add2ec authored by Niels Möller's avatar Niels Möller
Browse files

* src/server_userauth.c (do_userauth): Use the connection's

exception handler as parent, in order to get reasonable handling
of EXC_PROTOCOL.

Rev: src/server_userauth.c:1.31.2.2
parent 6b729668
No related branches found
No related tags found
No related merge requests found
......@@ -266,6 +266,7 @@ do_exc_userauth_handler(struct exception_handler *s,
default:
EXCEPTION_RAISE(self->super.parent, x);
break;
case EXC_USERAUTH:
{
/* Unlock connection */
......@@ -343,10 +344,12 @@ do_userauth(struct command *s,
connection->dispatch[SSH_MSG_USERAUTH_REQUEST] =
make_userauth_handler(self->methods, self->services,
c, e,
/* Use the connection's exception handler as
* parent, in order to get reasonable
* handling of EXC_PROTOCOL. */
make_exc_userauth_handler(connection,
self->advertised_methods,
/* FIXME: Use connection->e ? */
AUTH_ATTEMPTS, e,
AUTH_ATTEMPTS, connection->e,
HANDLER_CONTEXT));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment