From 7fa1804cf1fb1c57c53a864e055deff0bceca1bb Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 15 Jun 2009 15:31:23 +0000 Subject: ssh_init() fixes in client.c and server.c for this git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@778 7dcaeef0-15fb-0310-b436-a5af3365683c --- libssh/client.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libssh/client.c') 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(); -- cgit