Commit 805cd099 authored by Niels Möller's avatar Niels Möller

* src/client.c: Refer to the static packet handlers instead of

connection->fail and friends.
* src/client_userauth.c: Likewise
* src/client_keyexchange.c: Likewise.
* src/proxy.c: Likewise.
* src/proxy_userauth.c: Likewise.

Rev: src/proxy.c:1.9
Rev: src/proxy_userauth.c:1.6
parent f80136c9
......@@ -324,7 +324,7 @@ do_proxy_accept_service(struct packet_handler *c,
{
struct lsh_string *new_packet;
connection->dispatch[SSH_MSG_SERVICE_ACCEPT] = connection->fail;
connection->dispatch[SSH_MSG_SERVICE_ACCEPT] = &connection_fail_handler;
#if DATAFELLOWS_WORKAROUNDS
if ((connection->chain->peer_flags & PEER_SERVICE_ACCEPT_KLUDGE) ==
(connection->peer_flags & PEER_SERVICE_ACCEPT_KLUDGE))
......@@ -403,7 +403,7 @@ do_proxy_service_request(struct packet_handler *c,
{
/* Don't accept any further service requests */
connection->dispatch[SSH_MSG_SERVICE_REQUEST]
= connection->fail;
= &connection_fail_handler;
connection->chain->dispatch[SSH_MSG_SERVICE_ACCEPT]
= make_proxy_accept_service_handler(name, service, self->c, self->e);
......
......@@ -291,7 +291,7 @@ do_proxy_userauth_continuation(struct command_continuation *c,
/* Ignore any further userauth messages. */
for (i = SSH_FIRST_USERAUTH_GENERIC; i < SSH_FIRST_CONNECTION_GENERIC; i++)
self->connection->dispatch[i] = self->connection->ignore;
self->connection->dispatch[i] = &connection_ignore_handler;
FORCE_APPLY(action, self->super.up, self->super.e);
......
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