diff options
Diffstat (limited to 'libssh/client.c')
-rw-r--r-- | libssh/client.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libssh/client.c b/libssh/client.c index 2ef5568e..e6521d0c 100644 --- a/libssh/client.c +++ b/libssh/client.c @@ -491,15 +491,10 @@ int ssh_connect(SSH_SESSION *session) { session->alive = 0; session->client = 1; - if (ssh_crypto_init() < 0) { + if (ssh_init() < 0) { leave_function(); return SSH_ERROR; } - if (ssh_socket_init() < 0) { - leave_function(); - return SSH_ERROR; - } - if (options->fd == -1 && options->host == NULL) { ssh_set_error(session, SSH_FATAL, "Hostname required"); leave_function(); |