1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Fix libssh set_options_set() usage

SSH_OPTIONS_TIMEOUT requires a long value as per upstream documentation.

Pointing to an integer instead causes it to crash with SIBGUS on
OpenBSD/sparc64.
This commit is contained in:
Klemens Nanni 2020-04-13 20:55:58 +02:00 committed by Nicolas Viennot
parent cb4c7a874d
commit 54ea774265

View File

@ -210,7 +210,7 @@ static void handle_sigalrm(__unused int sig)
static void client_bootstrap(struct tmate_session *_session)
{
struct tmate_ssh_client *client = &_session->ssh_client;
int grace_period = TMATE_SSH_GRACE_PERIOD;
long grace_period = TMATE_SSH_GRACE_PERIOD;
ssh_event mainloop;
ssh_session session = client->session;