mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-07-05 12:36:09 -07:00
fix ssh for -M and ip/range
This commit is contained in:
parent
93283091d0
commit
0b1f3c5037
3 changed files with 9 additions and 3 deletions
|
@ -33,8 +33,9 @@ int32_t start_sshkey(int32_t s, char *ip, int32_t port, unsigned char options, c
|
|||
if (new_session) {
|
||||
if (session) {
|
||||
ssh_disconnect(session);
|
||||
ssh_finalize();
|
||||
ssh_free(session);
|
||||
} else {
|
||||
ssh_init();
|
||||
}
|
||||
|
||||
session = ssh_new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue