Commit 8ad75e6a authored by Niels Möller's avatar Niels Möller
Browse files

* src/client_userauth.c (make_banner_handler): Replaced with

a static object.

Rev: src/client_userauth.c:1.28
parent ab39cfdc
......@@ -348,6 +348,10 @@ do_userauth_banner(struct packet_handler *self UNUSED,
lsh_string_free(packet);
}
static struct packet_handler userauth_banner_handler =
{ STATIC_HEADER, do_userauth_banner };
#if 0
/* FIXME: Could use a static object instead. */
static struct packet_handler *
make_banner_handler(void)
......@@ -358,6 +362,7 @@ make_banner_handler(void)
return self;
}
#endif
/* GABA:
(class
......@@ -421,7 +426,7 @@ do_client_userauth(struct command *s,
connection->dispatch[SSH_MSG_USERAUTH_FAILURE]
= make_failure_handler(state);
connection->dispatch[SSH_MSG_USERAUTH_BANNER]
= make_banner_handler();
= &userauth_banner_handler;
assert(LIST_LENGTH(self->methods));
{
......
Supports Markdown
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