mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-06 04:51:40 -07:00
make thread-safe against old ssl versions
This commit is contained in:
parent
ff4deb768e
commit
a2de33fd2b
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ int32_t start_ssh(int32_t s, char *ip, int32_t port, unsigned char options, char
|
||||||
ssh_free(session);
|
ssh_free(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ssh_init();
|
||||||
session = ssh_new();
|
session = ssh_new();
|
||||||
ssh_options_set(session, SSH_OPTIONS_PORT, &port);
|
ssh_options_set(session, SSH_OPTIONS_PORT, &port);
|
||||||
ssh_options_set(session, SSH_OPTIONS_HOST, hydra_address2string(ip));
|
ssh_options_set(session, SSH_OPTIONS_HOST, hydra_address2string(ip));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue