Commit 25a29ffd 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.
* src/server_userauth.c: Likewise.
* src/server_keyexchange.c: Likewise.
* src/server.c: Likewise.

Rev: src/server.c:1.64
Rev: src/server_keyexchange.c:1.46
Rev: src/server_userauth.c:1.30
parent b6a32a1d
......@@ -91,7 +91,7 @@ do_service_request(struct packet_handler *c,
{
/* Don't accept any further service requests */
connection->dispatch[SSH_MSG_SERVICE_REQUEST]
= connection->fail;
= &connection_fail_handler;
/* Start service */
#if DATAFELLOWS_WORKAROUNDS
......
......@@ -85,7 +85,7 @@ do_handle_dh_init(struct packet_handler *c,
closure->hostkey_algorithm,
closure->signer));
connection->dispatch[SSH_MSG_KEXDH_INIT] = connection->fail;
connection->dispatch[SSH_MSG_KEXDH_INIT] = &connection_fail_handler;
keyexchange_finish(connection, closure->algorithms,
closure->dh.method->H,
......@@ -194,7 +194,7 @@ do_srp_server_proof_handler(struct packet_handler *s,
struct lsh_string *response = srp_process_client_proof(&self->srp->dh, packet);
lsh_string_free(packet);
connection->dispatch[SSH_MSG_KEXSRP_PROOF] = connection->fail;
connection->dispatch[SSH_MSG_KEXSRP_PROOF] = &connection_fail_handler;
if (response)
{
......@@ -291,7 +291,7 @@ do_handle_srp_init(struct packet_handler *s,
struct lsh_string *name = srp_process_init_msg(&self->srp->dh, packet);
struct exception_handler *e;
connection->dispatch[SSH_MSG_KEXSRP_INIT] = connection->fail;
connection->dispatch[SSH_MSG_KEXSRP_INIT] = &connection_fail_handler;
if (!name)
{
......
......@@ -139,7 +139,7 @@ do_userauth_continuation(struct command_continuation *s,
/* 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;
COMMAND_RETURN(self->up, self->connection);
......
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