From 54ea774265b271728c2bc6397638850fdeafae11 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Mon, 13 Apr 2020 20:55:58 +0200 Subject: [PATCH] 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. --- tmate-ssh-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmate-ssh-server.c b/tmate-ssh-server.c index 7f800b73..25c7878c 100644 --- a/tmate-ssh-server.c +++ b/tmate-ssh-server.c @@ -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;