1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-05-31 16:21:13 +03:00

tests: Fix torture_forward.

This commit is contained in:
Andreas Schneider 2013-10-20 13:23:31 +02:00
parent e30acdb58a
commit d3c186b04c

View File

@ -64,12 +64,13 @@ static void torture_ssh_forward(void **state)
int bound_port;
int rc;
rc = ssh_forward_listen(session, "127.0.0.1", 23424, &bound_port);
rc = ssh_forward_listen(session, "127.0.0.1", 8080, &bound_port);
assert_int_equal(rc, SSH_OK);
c = ssh_forward_accept(session, 50);
assert_null(c);
c = ssh_forward_accept(session, 1000);
assert_non_null(c);
ssh_channel_send_eof(c);
ssh_channel_close(c);
}