Commit 76697798 authored by Niels Möller's avatar Niels Möller

Bugfixes. Pass io_fd structs, not write functions, to the functions in

client.c.

Rev: src/lsh.c:1.21
parent 1cbbc8af
...@@ -92,9 +92,9 @@ static struct lookup_verifier *make_fake_host_db(struct signature_algorithm *a) ...@@ -92,9 +92,9 @@ static struct lookup_verifier *make_fake_host_db(struct signature_algorithm *a)
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
char *host = NULL; char *host = NULL;
char *user = NULL;
char *port = "ssh"; char *port = "ssh";
int option; int option;
char *user;
struct sockaddr_in remote; struct sockaddr_in remote;
...@@ -199,8 +199,8 @@ int main(int argc, char **argv) ...@@ -199,8 +199,8 @@ int main(int argc, char **argv)
(make_alist(0, -1), (make_alist(0, -1),
make_alist(0, -1), make_alist(0, -1),
make_client_startup(io_read(&backend, in, NULL, NULL), make_client_startup(io_read(&backend, in, NULL, NULL),
&io_write(&backend, out, BLOCK_SIZE, NULL)->buffer->super, io_write(&backend, out, BLOCK_SIZE, NULL),
&io_write(&backend, err, BLOCK_SIZE, NULL)->buffer->super, io_write(&backend, err, BLOCK_SIZE, NULL),
ATOM_SHELL, ssh_format(""))); ATOM_SHELL, ssh_format("")));
kexinit_handler = make_kexinit_handler kexinit_handler = make_kexinit_handler
......
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