fix ssh for -M and ip/range

This commit is contained in:
vanhauser-thc 2021-06-29 12:04:36 +02:00
parent 93283091d0
commit 0b1f3c5037
3 changed files with 9 additions and 3 deletions

View file

@ -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();