From a2de33fd2bcd50fa876dcfd121740074fb1064d0 Mon Sep 17 00:00:00 2001 From: Dave Eargle Date: Fri, 26 Oct 2018 02:09:00 -0600 Subject: [PATCH] make thread-safe against old ssl versions --- hydra-ssh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hydra-ssh.c b/hydra-ssh.c index 4e9dc7a..2f1d2d5 100644 --- a/hydra-ssh.c +++ b/hydra-ssh.c @@ -40,6 +40,7 @@ int32_t start_ssh(int32_t s, char *ip, int32_t port, unsigned char options, char ssh_free(session); } + ssh_init(); session = ssh_new(); ssh_options_set(session, SSH_OPTIONS_PORT, &port); ssh_options_set(session, SSH_OPTIONS_HOST, hydra_address2string(ip));